You are here: Re: Login via php code on an external page « All PHP « IT news, forums, messages
Re: Login via php code on an external page

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация