FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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.
Related topics
Best Freeware
PHP and IIS
[php] including from lib folder impossible
CHMOD Question
Virtual directories? I have a need
server with ready PHP
How long does it take?
How to promovate a website
Password Protected Directories
problems with phpBB2 forum
Opendir not working right for me.
Problem after phpBB installation, cant enter panel admin
Going UP a Directory with php?
How can I run PHP on IIS?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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