Bug #14847 Updated: relative links for including other scripts do not work anymore

From: Date: Tue, 12 Feb 2002 19:24:54 +0000
Subject: Bug #14847 Updated: relative links for including other scripts do not work anymore
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203@lists.php.net to get a copy of this message
ID: 14847 Updated by: patrick@clovis.org.uk -Reported By: mkindermann@nxn-software.com +Reported By: patrick@clovis.org.uk Status: Open Bug Type: Scripting Engine problem Operating System: W2k PHP Version: 4.1.1 New Comment: Same OS and version as previous comments. What I have found is that the include () fails (and causes an error) if used inside a function within a class. Previous Comments: ------------------------------------------------------------------------ [2002-01-25 03:47:06] jav@eudoramail.com I have a similar problem using W98 SE + PWS and PHP 4.1.1. I'll try give an explanation of what goes wrong In the base directory I have a directory called "admin". When I include a file menu.php from a file within the "admin" dir. I get a file menu.php but it comes from the base dir. When I remove this file from the base dir then the right file from the "admin" dir is included. I've installed PHP 4.1.0 and things seem to work properly again. ------------------------------------------------------------------------ [2002-01-04 07:26:10] mkindermann@nxn-software.com - just upgraded from 4.1.0 to 4.1.1 (win32 binaries) - afterwards, no php-script-includes worked anymore (e.g. include ("includes/bugreport.php");) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14847&edit=1

« previous php.bugs (#203) next »