Bug #14475 Updated: unlink($PHP_SELF) cause strange message

From: Date: Thu, 13 Dec 2001 11:18:12 +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-73502@lists.php.net to get a copy of this message
ID: 14475 Updated by: sander Reported By: jj@thecloud.org Old Status: Open Status: Bogus Bug Type: Filesystem function related Operating System: Linux Slackware and Cobalt Raq4 PHP Version: 4.0.6 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.dev (#73502) next »