| re: Please help, php file function problem
Thanks,
urlencode or rawurlencode does solve the problem with error code 400. However , the newly formated string cannot be found. Here is what i get :
The requested URL /cgi-bin/dictionary?hdwd=another&listword=another&jump=anot her[1,adjective]&list=another[1,adjective]=42705;another[2,pronoun]=42730;another-guess=42749;one another=799389&book=Dictionary
was not found on this server.
Apache/1.3.27 Server at www.merriam-webster.com Port 80
when the string in the file() function was
http://www.m-w.com/cgi-bin/dictionary%3Fhdwd%3Danother%26listword%3Danother%2 6jump%3Danother%5B1%2Cadjective%5D%26list%3Danothe r%5B1%2Cadjective%5D%3D42705%3Banother%5B2%2Cprono un%5D%3D42730%3Banother-guess%3D42749%3Bone%20another%3D799389%26book%3DDi ctionary
Interestingly enough if i put this string into a browser i get the same result that url is not found.
Yet when i put the string without special formatting in the browser,
the one between The requested URL and was not found on this server, everything seems to work fine.
|