Access external web content
| From: | Robert Mena | Date: | Wed, 07 Nov 2001 13:36:00 +0000 |
| Subject: | Access external web content | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-73729@lists.php.net to get a copy of this message | ||
Hi, I have a php that must access another content
located in an outside server.
I was trying to access it using fsockopen and regular
GET procedure.
Unfortunatelly it is not working.
If I try the same URL in lynx -source I am able to see
the result. If I fsockopen(host,80) and then GET
/xxxxx HTTP/1.0\n\n I get a server error.
While this may be something with the remote server
I've tryied a
exec("/usr/bin/lynx -source
\"http://somehost/script.php?foo=1&bar=2\"
>
/tmp/file.txt") ;
But I cat /tmp/file.txt
/home/mydocumentroot/bt1Y22: Permtion denied
Any ideas ?
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com