Forum Moderators: coopster

Message Too Old, No Replies

move 7 copy fail WinServer 2003 PHP 5

         

vertronics

9:23 pm on Aug 7, 2007 (gmt 0)

10+ Year Member



Hello ,I am able to upload files via form and I have confirmed that the files are in my Tmp folder.
My problem is that both the move and copy functions fail. I've tried both.

I've searched for a while now and can't determine if it's a windows permission problem or something else.

Just to isolate the problem I tried this script:

<?php
$source = "./test.txt";
$destination = "./copy.txt";

if (rename($source, $destination)) {
echo "The file was moved successfully.", "\n";
} else {
echo "The specified file could not be moved. Please try again.", "\n";
}
?>

It fails too..
Any ideas?

Thanks very much!
Vertronics

WesleyC

9:25 pm on Aug 7, 2007 (gmt 0)

10+ Year Member



PHP probably doesn't have write access to the folder you're in.

vertronics

9:32 pm on Aug 7, 2007 (gmt 0)

10+ Year Member




Does php user have a generic name? This is my first effort supporting php under windows.

Iam not sure what to look for.
Thanks,