[PHP-WIN] Re: webserver root

2001-09-10 Thread Michel Laine
Can't you just use include("filename.php") for the webroot... ...and use include("..\pages\filename.php") for subdirs? Assumed that you set the webroot in PHP .ini and change forward/backward slash depending on what OS you use. Mitja Pagon wrote: > Hi! > > I'm am an ASP developer, that decided

[PHP-WIN] Re: webserver root

2001-09-07 Thread Eric R. Gavin
> When including files in ASP pages using I > was able to include files into pages using path relative to the webserver > root. I have tried similar in PHP using include("/filename.php"), but just > recently learned that "/" slash charachter moves the pointer to the root of > the drive on which w

[PHP-WIN] Re: webserver root

2001-09-07 Thread John Lim
PHP 4.0.7 or 4.0.8 is going to fix this problem as it will search for files in the current directory. I forget which version. The patch is already in CVS. To find the document root, here's some code taken from http://phplens.com // Finds the DOCUMENT_ROOT - works with Apache, IIS and PWS functio