You are here: Re: Relative Paths and include files « PHP Programming Language « IT news, forums, messages
Re: Relative Paths and include files

Posted by Jerry Stuckle on 07/18/05 05:54

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
==================

 

Navigation:

[Reply to this 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

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