|
Cookbook /
PMWCompatSummary: Allow PHP 5 commands to be used in PHP 4
Version: 1.0
Prerequisites: PHP
Status: Working
Maintainer: GNUZoo
Categories: Administration
Downloads: PMWCompat.zipΔ
Questions answered by this recipeI am using PHP 4 and cannot upgrade on my server but I want to use some PHP5 commands. What can I do? Someone created a recipe with PHP 5 commands, but I cannot upgrade my server. DescriptionEmulates PHP 5 commands in PHP4. InstallationCopy PMWCompat.zipΔ to your cookbook directory and unzip it. In your config.php enter: require("cookbook/PMWCompat/PMWCompat.php");
or in your farmconfig.php enter: require(" $FarmD/cookbook/PMWCompat/PMWCompat.php");
NotesYou must edit the file PMWCompat/PMWCompat.php and enter the commands that you want to include. By default it includes only file_get_contents() and file_put_contents(). require_once "$PMWCDir/file_get_contents.php";
require_once "$PMWCDir/file_put_contents.php";
All the functions are in directory "PMWCompat/PHP_Compat-1.5.0/Compat/Function/".
Here is a list of all functions available:
Release NotesThis program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation http://www.fsf.org either version 2 of the License, or (at your option) any later version. Copyright 2007 by GNUZoo (guru@gnuzoo.org) Please donate to the author at url: http://gnuzoo.org/GNUZooPayPal
CommentsThe real author of the functions is Aidan Lister of http://php.net, and the real license is the PHP license. --Petko May 03, 2007, at 10:48 AM See AlsoContributors |