#22167 [Com]: require syntax changed

From: Date: Tue, 11 Feb 2003 13:40:32 +0000
Subject: #22167 [Com]: require syntax changed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32759@lists.php.net to get a copy of this message
ID: 22167 Comment by: s.birkhoff@liwest.at Reported By: s.birkhoff@liwest.at Status: Open Bug Type: Scripting Engine problem Operating System: Windows PHP Version: 4.3.0 New Comment: sorry last 2 lines should be: $classpath = "./mypath/"; require($classpath."thisfile.php"); Previous Comments: ------------------------------------------------------------------------ [2003-02-11 07:37:29] s.birkhoff@liwest.at require/include/require_once/include_once would only in the way require './mypath/thisfile.php' and no more as written in the documentation require ("./mypath/thisfile.php") this will cause in a error: failed to create stream... it also won't work the way require $classpath = "./mypath/"; ($classpath."thisfile.php"); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22167&edit=1

« previous php.bugs (#32759) next »