/    Sign up×
Community /Pin to ProfileBookmark

permissions problem uploading files/images to localhost iis

Hi,

I have created an upload scritp in php to upload images to my localhost server on iis. I am running everything locally on windows xp professional.
The script work by storing the names of the images in the database and putting the actually image files in a folder on within my site. However, I keep getting the following error,

Warning: move_uploaded_file(c:inetpubwwwrootsitewebadmin....webclient_centrephotolibraryphotos18__photo): failed to open stream: Permission denied in c:inetpubwwwrootsitetNGKT_tNG_defTrigg.inc.php on line 247

Warning: move_uploaded_file(): Unable to move ‘C:PHPuploadtempphp889.tmp’ to ‘c:inetpubwwwrootsitewebadmin....webclient_centrephotolibraryphotos18__photo’ in c:inetpubwwwrootsitetNGKT_tNG_defTrigg.inc.php on line 247

Error writing file to c:inetpubwwwrootsitewebadmin....webclient_centrephotolibraryphotos18__photo.
Please check folder permissions.

any help would be much appreciated. I have searched the net and tried changing permissions on the folders using iis but it has not worked yet..

thanks a lot

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@GenixdeaeNov 29.2004 — make sure that the folder has either:

Everyone with read/write/modify rights

OR

IUSER_machinename with read/write/modify rights....
Copy linkTweet thisAlerts:
@damon2003authorNov 29.2004 — I have gone into iis and right clicked on the appropriate folders to allow reading, writing, script access, directory browsing.


How do you alter IUSER_machinename rights? Where is this done.

Also the error that I got mentioned the php folder, which I have stored under c:php

do I have to make this folder shared or something, as this folder cannot be accessed through iis can it,

thanks a lot for any info
Copy linkTweet thisAlerts:
@GenixdeaeNov 29.2004 — you don't set the rights thro IIS...

you need to go to the folder you are setting the rights to and right click it. then go to Security. Add the user Everyone to it. set the rights to read/write/modify.

If you dont see the Security tab then go to Tools->Folder Options->View->uncheck "Use simple file sharing(Recommended)"
×

Success!

Help @damon2003 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...