php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33052 can not open php documents
Submitted: 2005-05-18 12:41 UTC Modified: 2005-05-18 12:42 UTC
From: sofienba at hotmail dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 5.0.4 OS: Unix SCO5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sofienba at hotmail dot com
New email:
PHP Version: OS:

 

 [2005-05-18 12:41 UTC] sofienba at hotmail dot com
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">

<html>

<head>
<title>Sans Titre</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="HAPedit 3.1">
</head>
<body bgcolor="#FFFFFF">
<pre>
<?
  // Your code here
  echo "<hr />\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);
?>
</pre>
</body>

</html>

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-18 12:42 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Fix permissions on these files.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 12 00:01:30 2024 UTC