FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

PHP paths and IIS virtual directories

 


woja
Those of you who have been using PHP longer that I have will possibly be able to answer this really quickly. The documentation is sadly deficient on this point and I could do with some advice.
I'm using PHP 5 in ISAPI mode (although the question equally applies to CGI) with IIS 5.1
The phpinfo() tells me that "Virtual Directory Support" is enabled and the ISAPI information lists the translated path of my request.
Does this mean that the following:
Code:
<?php include 'blah/more/somefile.php'; ?>

will attempt to map the path (like ASP's Server.MapPath()) or will it always be taken relative to the include_path?
Some other questions:
  1. What exactly is the "Virtual Directory Support" which is enabled? There's nothing in the documentation about this.
  2. Does the path mapping apply to the file system functions?
  3. Can I use IIS virtual directories at all in PHP without using "http://" prefixes?
Thanks for the help, in advance.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.