RE: [PHP] require_once failure

From: Date: Thu, 25 Jun 2009 12:13:46 +0000
Subject: RE: [PHP] require_once failure
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-294573@lists.php.net to get a copy of this message
[snip] ste@debian:~$ php test.php Warning: require_once (PHPUnit/Extensions/Database/Testcase.php): failed to open stream: No such file or directory in /home/ste/test.php on line 3 Fatal error: require_once(): Failed opening required 'PHPUnit/Extensions/Database/Testcase.php' (include_path='/usr/share/php') in /home/ste/ste.php on line 3 [/snip] The first thing I would do is check the permissions on the file to be included. If those are OK modify your script to give the absolute path to the file.

« previous php.general (#294573) next »