473,395 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Upload Script: Setting Permissions on Windows NT

Hi,

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'?

Thx

Silvia

PS: this is the script from uploaded.php:

<?php

$file = $_GET['file'];

copy ($_FILES['file']['tmp_name'], "files/".$_FILES['file']['name'])
or die ("Could not copy");
?>
Jul 17 '05 #1
1 3618
Sielvja wrote:
Hi,

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'?

Thx

Silvia

PS: this is the script from uploaded.php:

<?php

$file = $_GET['file'];

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


Try to make the "files" folder write able for everyone
--
-------------------------------------------------------
Try this: SCA the Smart Class Archive for PHP
http://www.project-sca.org
-------------------------------------------------------
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
9
by: Steve Poe | last post by:
I work for an animal hospital trying to use PHP to store an animal's dental x-rays to a file server. I can browse for the xray on the local desktop computer then click "Upload Image". This...
16
by: Akhenaten | last post by:
I must be missing something rather obvious. I have the following snippet of code that echo's my result twice when it should be echoing just once (only one element in the array). What am I...
2
by: Event Horizon | last post by:
Hi, I'm trying to add an simple upload applet to shopping cart script. My new applet form sends all needed post fields ( quantity, product, etc... ) but the "file" post field is hardcoded in...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
4
by: Tony B | last post by:
I've moved an existing site (which I didn't write) from a apache/php/mysql host under windows to a linux apache/php/mysql host. I've sorted out most problems except one. There is an upload...
7
by: Rozzy | last post by:
Hi, I need some recommendations for uploading files to the server. Right now I have a php script that uses ftp to upload, download, and delete files, and everything works fine for small files. ...
5
by: camphor | last post by:
hi, I have found an upload script in hotscripts and have implemented it into the website, I followed the installation steps to 'give write permissions to php on the upload folder (which is...
13
by: eclipsme | last post by:
I thought I had this licked, but apparently not. I have a file upload script that attempts to upload a file to a directory in the public_html directory - www.domain.com/upload The permissions...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.