[PHP] Does this directory detection script work for you?

2004-05-09 Thread John W. Holmes
Hello. I'm relying on the following code so that a script can automatically detect where it's installed and create paths and URLs from the information. This way absolute paths and URLs are always used. I've had a couple people report that the script wasn't finding the paths correctly, though,

Re: [PHP] Does this directory detection script work for you?

2004-05-09 Thread Richard Harb
Hello, I see one potential problem with this detection in one special case. This will only occur if you use Apache's feature PATH_INFO. There $current_page will be inaccurate as the scriptname might be /index.php but the URL could be /index.php/path/to/mypage or just /index/path/to/mypage -

Re: [PHP] Does this directory detection script work for you?

2004-05-09 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): I've had a couple people report that the script wasn't finding the paths correctly, though, so I'm asking if people could test this out on their server and see if it detects the paths or not. works fine with freebsd/apache-1.3.x/php5rc1