Re: virtual hosts and root directory for php
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Re: virtual hosts and root directory for php




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-28-04 01:49 PM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:05 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register