Re: Pear 1.4.8 under PHP 4.2.2.
| From: | Massimiliano Arione | Date: | Wed, 08 Mar 2006 09:16:13 +0000 |
| Subject: | Re: Pear 1.4.8 under PHP 4.2.2. | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23242@lists.php.net to get a copy of this message | ||
bertrand Gugger wrote:
Loading the whole PHP_Compat for that would be much an overload. As a hack, you could try to build a tiny mycompat.php somewhere in your include_path just putting in it the compat functions what you need and declare it as auto-prepend [1] in your php.ini. As a first try you could just copy in it the file_get_content() compat function [2].It's very much simpler to use the files provided by the PHP_Compat package: <?php require_once 'PHP_Compat/Compat/Function/file_get_contents.php'; .... ?> -- Massimiliano Arione http://garakkio.altervista.org