Click to See Complete Forum and Search --> : Spent whole sunday figuring out this problem


paracha3
06-09-2003, 01:26 AM
Hi All,

I am very new to php but i like working in it because its like C syntax and it is FREE. But this one problem is making me frustrated.

Running Win2k (NTFS HDD),IIS5.0 with latest PHP. When i try to access files using opendir(".") or opendir("E:\\Inetpub\\wwwroot\\") things work good.

But if i try opendir("E:\\") it doesn't work. I don't get any error, just empty page. I have given Administrative privileges to IIS Admin service, restarted, still the same. I ultimately want to access network share (mapped drive) but first i need to just get to local E:\.

I have read similar messages and it seems no one had problems reading their local hard drive. I cant even access local hard drive.
BTW Administrator has full access to E:\.

Please help.
Thanks:)

piersk
06-26-2003, 06:21 PM
Originally posted by paracha3
I have given Administrative privileges to IIS Admin service

Firstly: AAARRRGGGHHH!!! Don't ever do this. Especially if you even think about ever putting this computer within 5 miles of a net connection.

(sorry for the exageration, but its the same principal (sp?) as giving apache superuser powers. that user can do anything)

On a more helpful note, you don't need to give the webserver admin access. Have a look at the web sharing properties. Is this set so that the directory can be written to (I know you're not writing, but I had this kind of problem and this seemed to solve it).

ksandom
07-07-2003, 05:13 AM
I may be wrong here, but I'm guessing it's because it's outside of your document root. You can probably change this quite easily, However, as the last person said, you need to be careful with what rights you give to whom and for what.