Hi,
I am using PHP 5.0 file() function to get content of a web page
here is the string i use with the file function:
$str="http://www.m-w.com/cgi-bin/dictionary?hdwd =another&listwo rd=another&jump =another[2,pronoun]&list=anothe r[1,adjective]=42705;another[2,pronoun]=42730;another-guess=42749;one another=799389& book=Dictionary ";
file($str)
I get an error:
failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in C:\Program Files\Programmi ng\Xampp\xampp\ htdocs\main2.ph p on line 49
However, if i put that string directly into browser everything seems to work fine.
Any ideas?
Thanks ,
Andrew.
I am using PHP 5.0 file() function to get content of a web page
here is the string i use with the file function:
$str="http://www.m-w.com/cgi-bin/dictionary?hdwd =another&listwo rd=another&jump =another[2,pronoun]&list=anothe r[1,adjective]=42705;another[2,pronoun]=42730;another-guess=42749;one another=799389& book=Dictionary ";
file($str)
I get an error:
failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in C:\Program Files\Programmi ng\Xampp\xampp\ htdocs\main2.ph p on line 49
However, if i put that string directly into browser everything seems to work fine.
Any ideas?
Thanks ,
Andrew.
Comment