ID:               22167
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Windows
 PHP Version:      4.3.0
 New Comment:

What won't work is:
require ("/mypath/thisfile.php");
require ($mypath."thisfile.php");

what work is:
require '/mypath/thisfile.php';


Previous Comments:
------------------------------------------------------------------------

[2003-02-11 07:41:08] [EMAIL PROTECTED]

This really hasn't changed...WHAT works and what doesn't?


------------------------------------------------------------------------

[2003-02-11 07:40:31] [EMAIL PROTECTED]

sorry last 2 lines should be:
$classpath = "./mypath/";
require($classpath."thisfile.php");

------------------------------------------------------------------------

[2003-02-11 07:37:29] [EMAIL PROTECTED]

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

Reply via email to