Page 1 of 1

Premission Issue(I guess)

PostPosted: 27. June 2012 20:24
by antoha91
well, lately i have been trying to mess with the fopen() function, and it dosent seem to work on my Dedicated PC.
im running XAMPP on my home pc and everything is working fine (i.e fopen opens files).
when i try to run this:
Code: Select all
fopen("C:\\xampp\\htdocs\\Uni\\eva\\24-6-2012_uniquekills.txt", "r") or die("cannot open");

on my dedicated pc (Windows 2008 R2) i get a "cannot open" error.

my guess is that its the premission's fault.
i did set a read to Everyone (right click - > propretys -> Security -> New Group -> Everyone).

Help will be appritiated
Thnx ^_^

Re: Premission Issue(I guess)

PostPosted: 27. June 2012 21:14
by JonB
fopen() opens files in WHAT mode?

Good Luck
:wink:

Re: Premission Issue(I guess)

PostPosted: 27. June 2012 21:21
by antoha91
read? sorry didnt get ur point O_O

Re: Premission Issue(I guess)

PostPosted: 27. June 2012 21:23
by JonB

Re: Premission Issue(I guess)

PostPosted: 27. June 2012 21:30
by antoha91
aiight i have turned off my Safe_mode in php.ini, restarted appache, still nothing. "cannot connect"

Re: Premission Issue(I guess)

PostPosted: 27. June 2012 22:02
by JonB
There are more specific rights on Windows Servers than on workstation OS'es

I'd recommend you give Full Control in that folder to Everyone (just for now) See if that fixes things, if so, dial back the settings until only the needed rights.
Then do the right thing and make some good .htaccess files. On Windows, Apache relies entirely on .htaccess to make sure things are 'OK'.

My guess is that the specific missing right is 'list folder contents' BUT I am not sure of that, Its been a while since I took an MS Certification test.

You 'can' create a special user to run Apache and have an Apache group in theory as well.

Good Luck
8)