Reply to Re: Why does is_dir($_SERVER['DOCUMENT_ROOT']) produce false in Windows XP?

Your name:

Reply:


Posted by comp.lang.php on 01/08/07 14:38

Erwin Moller wrote:
> comp.lang.php wrote:
>
> <snip>
>
> >> >>
> >> >> In that case PHP thinks the directory doesn't exist, or is not a
> >> >> directory, but a file.
> >> >> If you are 100% sure the directory is there, you can try this:
> >> >>
> >> >> Make sure PHP can SEE the directory.
> >> >> To do this, check if the user that runs PHP (apache probably) has
> >> >> readrights on that directory.
> >> >
> >> > readrights? This is XP, remember? How do you do permissions/rights in
> >> > XP?
> >>
> >> Strange as it may sound, even XP has rights. ;-)
> >>
> >> I do not run XP myself, but on W2000 it works like this:
> >> Just log in as admin or as a user with adminrights, go to the directory
> >> in explorer, rightclick the directory, check the tab 'security'.
> >
> > Sorry, but there is no 'security' tab. My user has full admin rights
> > and I'm using both "My Computer" and Windows Explorer, but there is no
> > security tab. I don't see how you can do permissions in XP or any
> > version of Windows.
> >
> > Phil
>
> I am sorry Phil, but you better ask in an XP-related newsgroup, or do some
> googling by yourself.
> I don't know where Microsoft hided that functionality this time, they like
> to change important settings with every release of their OS's for reasons
> unknown to me.

Thanx, though that ensures that I won't be easily able to control
security settings for web apps on a Windows server (Un*x 1, Windows
0)..

I wound up farging the whole thing with the directory paths and
hardcoded the user-defined directory values to be "/"-based and it
seems to work within PHP now as "c:/program files/apache
group/apache/htdocs" when I make sure it's declared that way.

*sigh*

Phil

>
> Good luck,
> Erwin Moller

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация