ID: 46863
Updated by: [email protected]
Reported By: nowezz at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: CentOS
PHP Version: 5.2.8
New Comment:
You need write permission to write in the dir.
Previous Comments:
------------------------------------------------------------------------
[2008-12-17 17:12:52] php at degoulet dot net
i can't reproduce your problem :(
can you give us your error message please ?
------------------------------------------------------------------------
[2008-12-14 15:08:25] nowezz at hotmail dot com
Description:
------------
I write a few line of code with rename() function in PHP.
It works well on Windows then I run the same code on CentOS but it
doesn't work. I have do idea what's going on.My code is
<?
$i=rename("/root/Desktop/sad.txt","/root/Desktop/sad2.txt");
if($i==true)
echo "OK";
else
echo "not OK";
?>
The file permission is already like this.
-rwxrwxrwx 1 root root 0 Dec 14 19:59 sad
I checked out php.ini file.Safe mode is OFF.
Can anybody please help me ? I am new to this.
thank you in advance.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46863&edit=1