ID:               46863
 Comment by:       php at degoulet dot net
 Reported By:      nowezz at hotmail dot com
 Status:           Open
 Bug Type:         Scripting Engine problem
 Operating System: CentOS
 PHP Version:      5.2.8
 New Comment:

i can't reproduce your problem :(
can you give us your error message please ?


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to