#19827 [Fbk->Csd]: Apache2 and PHP do not handle relative paths properly
| From: | edink@php.net | Date: | Wed, 09 Oct 2002 08:47:37 +0000 |
| Subject: | #19827 [Fbk->Csd]: Apache2 and PHP do not handle relative paths properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21904@lists.php.net to get a copy of this message | ||
ID: 19827
Updated by: edink@php.net
Reported By: tilman.giese@globalview.de
-Status: Feedback
+Status: Closed
Bug Type: Apache2 related
Operating System: SuSE Linux 7.3
PHP Version: 4.2.3
New Comment:
This bug has been fixed in the CVS. It can be downloaded at
http://snaps.php.net/php4-STABLE-latest.tar.gz.
And please search the bug database before opening new bug reports.
Previous Comments:
------------------------------------------------------------------------
[2002-10-09 03:41:30] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-10-09 03:40:10] tilman.giese@globalview.de
I have been using Apache (version 1) for a long time, and now I tried
out Apache2, which runs parallel on port 8080. A lot of my PHP scripts
use templates and therefore the file_exists function is often used like
if (!file_exists($filename)) die('Failed.');
Some of the scripts use relative paths and now PHP reacts differently.
On apache1 file_exists('index_content.tpl') returns true.
On apache2 file_exists('index_content.tpl') returns false.
The file surely exists. But why do I get false? I thought that the
file_exists function should have nothing to do with apache, shouldn't
it?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19827&edit=1