note 102778 rejected from function.include-once by danbrown

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.