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

Posted by mark on 07/18/05 10:22

This is what my provider says:

"
There is no easy way to set the document root on the servers as we have
them configured in a certain way which would mean making alot of
changes. The servers use Apache mod_vhost_alias which is why the
document root is /home You could use PHP or Perl to assign a value to a
variable for your document root."

Thanks for everyone's help. I'll check out all the suggestions and
experiment...

Mark.


Jerry Stuckle wrote:
> 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.
>
>

 

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

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