Php Scraping Script

The admin page would look like this:

http://s14.postimage.org/d6md6w4u9/admin.jpg

When we execute index.php from the cron, the script looks at file.txt and goes to the URL from the first line.

The format of file.txt looks like this:

“Bangladesh”;”http://www.website.com/cheap-flights/bangladesh/”;”Any=1000;YVR-DAC=1000;YYZ-DAC=1000″;”Difference=50″
“China”;”http://www.website.com/cheap-flights/china/”;”Any=800;YVR-PEK=750;YYZ-PEK=850″;”Difference=50″
“India”;”http://www.website.com/…

Leave a Reply

Your email address will not be published. Required fields are marked *