[PHP] copy + chmod problems ...

2002-02-07 Thread jeremy rotsztain
hello, i'm attempting to copy a file from its original location to a new folder ... $oldfile = files/adamsCampbells.swf; $newfile = photos/adamsCampbells.swf; $test = copy($oldfile, $newfile); however, in doing so, i'm encountering some problems: Warning: Unable to

Re: [PHP] copy + chmod problems ...

2002-02-07 Thread mike cullerton
i just tried a test and it works on MacOS X. even with the space between 'chmod' and '('. what platform are you on? is this a standalone script/app or from a web page? can you perform the chmod from the command-line? what is the entire error message? also, the error doesn't really suggest this,

Re: [PHP] copy + chmod problems ...

2002-02-07 Thread jeremy rotsztain
hi mike ... actually, this was my first mistake ... i received this chmod error because i entered the command into the unix terminal window using osx. i tried later to change the permissions using php (a script), but was unable to do so: $chg = chmod (photos, 0777); error message ==