|
|
Posted by J.O. Aho on 03/01/07 13:34
Andrea wrote:
> I have to do a php script that daily surf a webpage (I do it with
> crontab) and collect some data.
> The proble is that to access that webpage I have to do a login. I have
> the login data, but do it via browser....ok, I'm not stupid, but do
> that via php script...well I'm not able to do it.
> The script is running on the server side, so it's useless to do the
> login on my browser prior to run the script.
> The page where I have to login has this code in it:
It's a lot easier if you use wget, it supports sessions and cookies, you first
use wget to get the page to your local machine and then process the file in php.
--
//Aho
[Back to original message]
|