i have a slight problem. I am currently trying to develop a script for a mate of mine who is in the car importation business.
If you type in the url "http://www.website.com/search.asp
" it will display a login box. However if you are logged into the system and type the same URL it will produce a list of all the cars available for importation. Is there a way to login then read the file?
Here is my script:
$line = array();
$total = '0';
if(!($myFile=@fopen("http://www.website.com/search.asp
","r")))
{
echo "The auction page is down for maintenance.";
exit;
}
while(!feof($myFile))
{
$myLine = fgets($myFile,255);
array_push ($line, $myLine);
$total++;
}
fclose($myFile);
$total = $total - 8;
for ($i = 0; $i <= $total; $i++) {
echo $line[$i];
fwrite(fopen("test.html", "a"), $line[$i]."\n");
}
i was thinking of making a frames site that has a header frame. I would then tell the PHP script to login into the system then in 30 seconds the header fram would go to the required URL?
I want an automatic solution so i can just setup a cron entry and have it run once everyday to get all the new cars available. Any ideas?