I would like to upload a file and have it simeltaneously copied to a seperate directory. Possible?
Thanks,
Jeremy
uploading same files in different directories
Moderator: General Moderators
I tried the following script on an NT server:
<?php
if(!copy("test.txt", "/testdir/")) die ("Can't copy the file copyme.txt to copied.txt!");
?>
and this is the error message I get:
Warning: copy(/testdir/) [function.copy]: failed to create stream: Permission denied in D:\Inetpub\SecurityWeb\board\copy.php on line 2
Can't copy the file copyme.txt to copied.txt!
Any ideas?
Thanks,
Jeremy
<?php
if(!copy("test.txt", "/testdir/")) die ("Can't copy the file copyme.txt to copied.txt!");
?>
and this is the error message I get:
Warning: copy(/testdir/) [function.copy]: failed to create stream: Permission denied in D:\Inetpub\SecurityWeb\board\copy.php on line 2
Can't copy the file copyme.txt to copied.txt!
Any ideas?
Thanks,
Jeremy