Re: [phplib-users] PHP 5.2 and PHPlib
Brought to you by:
nhruby,
richardarcher
From: Lindsay H. <fmo...@fm...> - 2008-08-22 16:21:25
|
On Fri, 2008-08-22 at 14:51 +0200, Marko Käning wrote: > Hi all, > > whoever might be out there... > > I just downloaded Richard Archer's version 7.4a from the internet. Then > remembering that I would find phplib's source also on SourceForge... > > Anyway, having checked its bugtracker I verified that phplib is full of > HTTP_POST_VARS and similar things. That's just frightening now that I > wanted to port my application to PHP5 where these VARs don't exist > anymore. The long, old-style arrays can still be used by setting register_long_arrays = On your global php.ini file, or by putting the equivalent directive in one of the apache configuration files. It's also pretty easy to script a utility which will replace all of the long array names using perl, python, or even probably sed/awk from a shell script. I've done this to to replace all the short PHP tags - "<?" - in all files in a directory with the longer equivalent - "<?php", which is necessary if one wants to use XML tags in a PHP page. I have bunch of websites to move from a PHP4 box to a PHP5 box with register_long_arrays = Off and will toss together a utility or two in python to do this conversion easily. I'll post them here if anyone is interested. > Feel quite lost all of a sudden. Looks like I'd have to step back and use > PHP4 again... PHP4 is not considered up to current security standards for use on the open Internet, and is no longer supported by the PHP development group. > If somebody out there has successfully applied PHPlib on PHP5 and would be > willing to share the source I'd be very happy. I'm successfully using PHPlib on PHP 5.2. Looking at the PHPlib source, the only file that contain the long array names which I use frequently is local4.inc, which I copy and modify on a per-site basis, and so far I've simply used a global replace in vim to do the name conversion. -- Lindsay Haisley |"Fighting against human | PGP public key FMP Computer Services | creativity is like | available at 512-259-1190 | trying to eradicate |<http://pubkeys.fmp.com> http://www.fmp.com | dandelions" | | (Pamela Jones) | |