Posted by Carl Vondrick on 01/26/06 05:26
Darren wrote:
> Hello,
>
> we're fully paid up and signed up to a password protected site, so this
> isn't hacking. In this site we can download a price list in CSV
> format.
>
> What I'd like to do is have a PHP script log into the site and download
> the CSV file so we can then display it on our website.
>
> Is this posible?
>
> Darren
>
How is the site protected? WWW-Auth or regular form? Cookies?
In any case, you can use fsockopen
[http://us3.php.net/manual/en/function.fsockopen.php] to simulate a
connection to the server. You just need to pass the right headers.
I prefer this way because it stays within PHP, without branching to *NIX
command line. This should work just fine on Windows or *NIX.
[Back to original message]
|