|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-12-17 17:12 UTC] php at degoulet dot net
[2008-12-26 10:50 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 06:00:01 2025 UTC |
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.