Apache Server configuration support - Re: virtual hosts and root directory for php

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2004 > Re: virtual hosts and root directory for php





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: virtual hosts and root directory for php
Christoph Hörterer

2004-09-28, 8:49 am

Justin Koivisto wrote:

> Christoph Hörterer wrote:
>
>
>
> easiest way...
>
> include dirname(__FILE__).'/include/file.txt';
>
> Where "/include/file.txt" is relative to the file that you are working on.
>


Ok,
didn't really understand your answer but it brought me to something
obvious. Thank you. As virtual hosts already work, I just add the
virtual domain:

include("http://test.pofi.de/include/file.txt");

So it works, even in subdirectories.
How come that php doesn't accept the root directory of a virtual host,
while html and css does?

cu Christoph
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com