#21853 [Bgs->Opn]: includes stopped working

From: Date: Wed, 29 Jan 2003 02:47:57 +0000
Subject: #21853 [Bgs->Opn]: includes stopped working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31518@lists.php.net to get a copy of this message
ID: 21853 User updated by: gol1689@hotmail.com Reported By: gol1689@hotmail.com -Status: Bogus +Status: Open Bug Type: *Directory/Filesystem functions Operating System: Windows XP PHP Version: 4.3.0 New Comment: Please explain why this worked just fine under version 4.2? Previous Comments: ------------------------------------------------------------------------ [2003-01-24 11:38:28] sniper@php.net Not a bug, expected behaviour. ------------------------------------------------------------------------ [2003-01-24 07:51:33] magnus@php.net When you use include("/some/path"); you are using the absolute path in the file system, not the relative path to your webroot. With your example the file have to be located in X:\includes\login_code.php where X is the drive where your webroot is located. ------------------------------------------------------------------------ [2003-01-23 19:53:08] gol1689@hotmail.com Since I upgraded to PHP 4.3, all of the includes on my Web sites quite working (hundereds of them). I've tried poking around in the php/ini file; modifying include_path and what not and finally had to give up and go back to last 4.2 version. Here is an example of what does not work (I get a warning saying that it cannot find the file). <?php include('/includes/login_code.php'); ?> If I modify this so that the link to relative to the current document it works fine. <?php include('includes/login_code.php'); ?> What gives? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21853&edit=1

« previous php.bugs (#31518) next »