For some reason unknown to me the php cli fails to include other php files via 'include', 'require' and all realted functions. When I call the same script from a webrowser it works fine. An example:
file1.php:
Code: Select all
<? print("test"); ?>
Code: Select all
<? require("file1.php"); ?>
I tried all variations of paths to the file. Full path, relative path etc. I tried changing the include path, all without any result. All variations run fine when called from the web browser. It all ran fine before, I think it stopped working when I upgraded php, but I'm not sure.
This is my php version:
Code: Select all
PHP 5.2.11 (cli) (built: Oct 7 2009 08:32:32)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.3.1, Copyright (c) 2002-2009, by ionCube Ltd.
with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH
Kind regards,
tijs