Re: Relative Paths and include files
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Relative Paths and include files

From: Jerry Stuckle <jstucklex@attglobal.net>
Date: Mon Jul 18 2005 - 04:54:36 CEST

mark wrote:
> Thanks Jerry, the trouble I have is that my hosting provider sets the
> document root to /home so if I was to use absolute paths I would have to
> do somethign like
>
> /home/path/to/the/public_html/images/image1.gif
>
> which is a bit long winded. I could store it in a variable but it would
> be better if I could set document root to the public_html folder. Do you
> know how I can do this with out changing the httpd.conf file?
>
> Thanks.
>
>

Mark,

No, you can't change this without access to the httpd.conf file.

However - I'd be VERY surprised if the document root is set to /home. This is
the default directory for your web site; it should NOT be home.

I suspect your real document root is something/public_html (or something
similar). That's what's standard; if it isn't your entire web site would be broken.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Received on Mon Oct 17 21:09:41 2005