Posted by Georgi Naumov on 06/17/07 08:20
Jon Slaughter :
> "Jon Slaughter" <Jon_Slaughter@Hotmail.com> wrote in message
> news:t13di.4440$bP5.2625@newssvr19.news.prodigy.net...
> > When I run my scripts on a http server I can use the
> > $_SESSION['Document_Root'] to get the dir of the scripts and stuff(I have
> > my local file system laid out exactly as the one on my server.
> >
> > The issue is that when I run the script without using session_start I have
> > to set the document root manually. Now every time I switch from running
> > locally to a web server I have to comment out the line. Its not a big deal
> > but I'm wonder if I could somehow tell php to use a default document root
> > if a session isn't started?
> >
> > Thanks,
> > Jon
> >
>
> ok, nm... was a setting in the server config.
Hm.
Did you see value of $_SERVER['DOCUMENT_ROOT'] ?
May be it can help you.
Navigation:
[Reply to this message]
|