Bug #14475 Updated: unlink($PHP_SELF) cause strange message
| From: | jj at thecloud dot org | Date: | Fri, 14 Dec 2001 00:52:55 +0000 |
| Subject: | Bug #14475 Updated: unlink($PHP_SELF) cause strange message | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73639@lists.php.net to get a copy of this message | ||
ID: 14475
User updated by: jj@thecloud.org
Reported By: jj@thecloud.org
Status: Bogus
Bug Type: Filesystem function related
Operating System: Linux Slackware and Cobalt Raq4
PHP Version: 4.0.6
New Comment:
chmod 777 uff.php then it gives the same error.
Infact I wouldn't suggest for a bug if I wasn't sure the permissions where correctly set.
However, even if permissions were not correclt set, the error message should have been different.
Ciao
Julien
Previous Comments:
------------------------------------------------------------------------
[2001-12-13 06:18:12] sander@php.net
This error is probably caused by incorrect permission. Check if your webserver has READ access to
the file. If not, PHP can't open the file to parse it and it will die with this message. Reopen
if this is not the case.
------------------------------------------------------------------------
[2001-12-12 19:45:04] jj@thecloud.org
I've tryed to unlink the self .php file with:
unlink($PHP_SELF);
and got this warning:
Warning: Failed opening '/home/sites/site4/web/uff.php' for inclusion
(include_path='') in Unknown on line 0
Obviously:
1) the file name was uff.php placed in the path '/home/sites/site4/web/
2) The page had no "include" statements.
uff.php
-------
<?php
if ($login!="hello"){ exit("Hello"); }
?>
Hello Word
<?php
unlink($PHP_SELF);
?>
Byez
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14475&edit=1