Forum Moderators: coopster
chmod($old_file, 0777);
rename($old_file, $new_file);
Warning: chmod() [function.chmod]: Operation not permitted in script.php on line 13Warning: rename($old_file,$new_file) [function.rename]: No such file or directory in script.php on line 14
I have also tried the ftp_rename from the php manual. [us3.php.net ]
I received similar messages from that also. I have also tried using $_SERVER['DOCUMENT_ROOT']. in front of my $new_file and $old_file
I know the file exists because the other part of the script is running and I use
if (file_exists($old_file)) {to check the file. I appreciate any and all help.
Drunk