Upload Script: Setting Permissions on Windows NT

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

i've put an upload script on my site, hosted on a Windows NT Version
5.0 server.
When i try to upload something i get an error:

copy(files/file.txt): failed to open stream: Permission denied in
d:\sites\matita.be\website\uploaded.php on line 20
Could not copy

The problem is that i am not able to change the permissions, since
it's a windows server. CHMOD is not supportes, CACLS neither.

Is there a way out, or is it up to the server admin to install some
'permission system'?



PS: this is the script from uploaded.php:


$file = $_GET['file'];

copy ($_FILES['file']['tmp_name'], "files/".$_FILES['file']['name'])
   or die ("Could not copy");

Re: Upload Script: Setting Permissions on Windows NT

Sielvja wrote:
Quoted text here. Click to load it

Try to make the "files" folder write able for everyone

Try this: SCA the Smart Class Archive for PHP

Site Timeline