php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46863 rename function with CentOS
Submitted: 2008-12-14 15:08 UTC Modified: 2008-12-26 10:50 UTC
Votes:2
Avg. Score:2.0 ± 1.0
Reproduced:0 of 2 (0.0%)
From: nowezz at hotmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.8 OS: CentOS
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nowezz at hotmail dot com
New email:
PHP Version: OS:

 

 [2008-12-14 15:08 UTC] 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.
 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-17 17:12 UTC] php at degoulet dot net
i can't reproduce your problem :(
can you give us your error message please ?
 [2008-12-26 10:50 UTC] felipe@php.net
You need write permission to write in the dir.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Dec 04 07:00:01 2025 UTC