|
Posted by d on 01/26/06 12:52
"Carl Vondrick" <usenet@carlsoft.net> wrote in message
news:UjXBf.15928$Jd.14345@newssvr25.news.prodigy.net...
> 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.
It also doesn't need any extensions, like cURL. It does, though, take a bit
more knowledge about HTTP, but I totally agree with you - I use fsockopen
for all my HTTP needs ;)
dave
[Back to original message]
|