Re: [PHP] Finding out which file is retrieved over HTTP

2003-03-25 Thread Jens Lehmann
Ernest E Vogelsinger wrote: At 20:48 25.03.2003, Jens Lehmann spoke out and said: [snip] To actually check on the HTTP status codes you need to run your own, either using cURL, or by doing your own stuff using fsockopen(). I tried using fsockopen(), but still

Re: [PHP] Finding out which file is retrieved over HTTP

2003-03-25 Thread Ernest E Vogelsinger
At 20:48 25.03.2003, Jens Lehmann spoke out and said: [snip] >> To actually check on the HTTP status codes you need to run your own, either >> using cURL, or by doing your own stuff using fsockopen(). > >I tried using fsockopen(), but still experience a probl

Re: [PHP] Finding out which file is retrieved over HTTP

2003-03-25 Thread Ernest E Vogelsinger
At 13:08 25.03.2003, Jens Lehmann spoke out and said: [snip] >A thing which seemed a bit confusing to me is that if I open a >non-existing website (fopen('http://www.amazon.de/nonsensestuff')) I >always get an error message "Success". It's the same thing if

Re: [PHP] Finding out which file is retrieved over HTTP

2003-03-25 Thread Jens Lehmann
David Otton wrote: On Sun, 23 Mar 2003 21:21:39 +0100, you wrote: The following short script retrieves a file over HTTP: $url = 'http://www.example.com/'; implode('',file($url)); // or file_get_contents() Now I'd like to find out which file was really retrieved, for instance http://www.example.

Re: [PHP] Finding out which file is retrieved over HTTP

2003-03-23 Thread David Otton
On Sun, 23 Mar 2003 21:21:39 +0100, you wrote: >The following short script retrieves a file over HTTP: > >$url = 'http://www.example.com/'; >implode('',file($url)); // or file_get_contents() > >Now I'd like to find out which file was really retrieved, for instance >http://www.example.com/index.ht

[PHP] Finding out which file is retrieved over HTTP

2003-03-23 Thread Jens Lehmann
The following short script retrieves a file over HTTP: $url = 'http://www.example.com/'; implode('',file($url)); // or file_get_contents() Now I'd like to find out which file was really retrieved, for instance http://www.example.com/index.html. Is this possible and how? Background: I need to wr