I am trying to use the file command to open a remote file via http.
As a test I am just trying to hit google for now.
I get the following error.
Warning: file(http://www.google.ca) [function.file]: failed to open stream: Permission denied in /var/www/html/new.php on line 3
I can use file to open local files just file.
phpinfo.php shows allow_url_fopen=On
safe mode is off.
Not sure why it cant open the url.
[solved] failed to open stream: Permission denied
Moderator: General Moderators
[solved] failed to open stream: Permission denied
Last edited by gorgor on Sun Jul 17, 2005 1:19 pm, edited 1 time in total.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia