[PHP] Strange results from file_get_contents using an url as filename

2004-12-28 Thread Ewout de Boer
I'm getting unexpected data from my file_get_contents function using an url as filename. The function does not return false, i do get data from it. Problem is that is is not the data is requested. $data = file_get_contents(http://somehost.com/xmlonl.asp?custid=00prodid=0 ); if

Re: [PHP] Strange results from file_get_contents using an url as filename

2004-12-28 Thread Jason Wong
On Tuesday 28 December 2004 20:03, Ewout de Boer wrote: $data = file_get_contents(http://somehost.com/xmlonl.asp?custid=00prodid= 0 ); if ($data) { ... the string this function returns is the webpage from the default website of the server where this php code is running

Re: [PHP] Strange results from file_get_contents using an url as filename

2004-12-28 Thread John Hicks
Ewout de Boer wrote: I'm getting unexpected data from my file_get_contents function using an url as filename. The function does not return false, i do get data from it. Problem is that is is not the data is requested. $data =

[PHP] [SOLVED] Re: [PHP] Strange results from file_get_contents using an url as filename

2004-12-28 Thread Ewout de Boer
I'm getting unexpected data from my file_get_contents function using an url as filename. The function does not return false, i do get data from it. Problem is that is is not the data is requested. The ISP made a mistake in the server config :-( ... it works again regards, Ewout -- PHP