RE: [PHP] file("http://www.php.net") error?
| From: | James Cox | Date: | Thu, 28 Jun 2001 13:54:07 +0000 |
| Subject: | RE: [PHP] file("http://www.php.net") error? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55490@lists.php.net to get a copy of this message | ||
You will also find that file(); may have been disabled - due to the possible
security issues..
ie file ( /etc/shadow); or file (/etc/passwd);
I believe that may apply to fopen, too.
James
-----Original Message-----
From: atan [mailto:22877@163.net]
Sent: 23 June 2001 02:46
To: php-general@lists.php.net
Subject: [PHP] file("http://www.php.net") error?
file("http://www.163.com") error?
this is a test:
////////////////////////
<?php
$fcontents = file ('http://www.php.net');
while (list ($line_num, $line) = each ($fcontents)) {
echo "<b>Line $line_num:</b> " . htmlspecialchars ($line) .
"<br>\n";
}
?>
/////////////////////////////////////////
This program run no error in my server ;
but it not work when i sent it to the Server (mtkj.51.net)
The message:
Warning: file("http://www.163.com") - Permission
denied in
/z1/mtkj/public_html/test.php on line 2
Warning: Variable passed to each() is not an array or object in
/z1/mtkj/public_html/test.php on line 3
why?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net