note 102778 rejected from function.include-once by danbrown
| From: | danbrown@php.net | Date: | Sun, 06 Mar 2011 14:13:03 +0000 |
| Subject: | note 102778 rejected from function.include-once by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-177594@lists.php.net to get a copy of this message | ||
Note Submitter: vknrvk at yahoo dot com
----
I am trying to use PHP 5.3.5 for development of a system. When I try the commands
include PEAR_DIR.'Compat.php'
PHP_Compat::loadFunction('file_get_contents');
it is returning error Class 'PHP_Compat' not found
I can load the file in the browser with correct directory path. I tried the command
include_once dirname(__FILE__).'/libs/Pear/Compat.php';
This also showing same error.
This is a general pattern happening with include, include_once, require and require_once commands.
Any helping pointers are really appreciated.