note 52938 added to faq
| From: | sofienba at hotmail dot com | Date: | Wed, 18 May 2005 11:38:21 +0000 |
| Subject: | note 52938 added to faq | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89577@lists.php.net to get a copy of this message | ||
i encounterd this problem with all php files
Warning: Unknown: failed to open stream: Permission denied in Unknown
on line 0
Warning: Unknown: Failed opening '/usr/local/apache/sba/test2.php' for
inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
From: sofienba at hotmail dot com
Operating system: Unix SCO5
PHP version: 5.0.4
PHP Bug Type: Apache related
Bug description: can not open php documents
Description:
------------
Warning: Unknown: failed to open stream: Permission denied in Unknown on
line 0
Warning: Unknown: Failed opening '/usr/local/apache/sba/test2.php' for
inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
the problem is encounterd with all php files
Reproduce code:
---------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
\n".
"HAPedit 3.1.11.111 (mai 2005 14:46:29)\n";
print_r ($_POST);
print_r ($_GET);
print_r ($_FILES);
$toto=fopen( $_FILES['userfile'][tmp_name],'r');
echo fgets ($toto,100);
?>
Expected result:
----------------
HAPedit 3.1.11.111 (mai 2005 14:46:29)
Array
(
)
Array
(
)
Array
(
)
.........
Actual result:
--------------
Warning: Unknown: failed to open stream: Permission denied in Unknown on
line 0
Warning: Unknown: Failed opening '/usr/local/apache/sba/test2.php' for
inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
the problem is encounterd with all php files
----
Manual Page -- http://www.php.net/manual/en/faq.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52938
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52938&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52938&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52938&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52938&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52938&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52938&report=yes
Search -- http://master.php.net/manage/user-notes.php