09-17-2011, 07:25 AM
|
#1 (permalink)
|
|
The Visitor
Join Date: Sep 2011
Posts: 1
Thanks: 0
|
Get content from dynamic url
Hello.
I'm trying to get the content of a website, and store it in a variable.
I have tryed this code:
PHP Code:
$c = file_get_contents('http://www.booking.com/hotel/ro/ramada-plaza-bucharest.php?checkin=2011-09-19;checkout=2011-09-20');
echo $c;
If i enter the url directly in browser it shows me the rooms available for the checkin that i've put in the link.
But if i run the php script on server the checkin and checkout take no effect, so the website ask me for the checkin and checkout date. It is possible to get the website content with checkin and checkout that i've wrote in the url?
|
|
|
|