Hi
do you pass any variables in the URL, that need to be urlencode() can you pm a sample of the URL? If there are any spaces etc in the URL they need to encoded
having a bit of trouble with this, basically I have a url that if I paste into my browser it works and gives the correct output.
however if I put the url in to a php script something like...
where $url is the same url I would paste into the browser, the php output is...PHP Code:$content = file_get_contents($url);
echo $content;
Warning: file_get_contents(#url#): failed to open stream: HTTP request failed!
Where #url# is my $url fro mthe script. So it works, the script that its requesting gives the correct output but only via a browser call not a php one. Done a few searches about it but not getting anywhere
any ideas?![]()
Dan Morley
alpharooms.com
daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
My Blog | Cheap Holidays
Hi
do you pass any variables in the URL, that need to be urlencode() can you pm a sample of the URL? If there are any spaces etc in the URL they need to encoded
one damn space! Cant believe id missed that, cheers
Dan Morley
alpharooms.com
daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
My Blog | Cheap Holidays
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks