Try and get them (your hosting company)to configure your site with a prepend file e.g. prepend.php for your domain.
in this file, do something like:

$_GET = array( );
$_POST = array( );
$_SERVER = array( );
// etc......
while ( list( $sKey, $mVal ) = each( $HTTP_GET_VARS ) )
$_GET{$sKey} = $mVal;
// Do this for all arrays which you want to use in your code.

As this file will be auto prepended everytime php is invokded,
these variables will always be available, although they will NOT
be global. That might be a problem if you are using them in the global

Hope this is useful.



On 2002/12/12 08:14, Jonathan wrote:
I began to develop a small session based shopping cart using newer syntax.
For example, $_SERVER, $_REQUEST, $_SESSION, etc. Anyway, I'm almost done
with the cart and just found out that the hosting company for the client is
running PHP 4.0.6. Is there anyway around this besides changing all of my
variable names?

Jonathan Villa
Application Developer
IS Design & Development
www.isdesigndev.com <http://www.isdesigndev.com/> 414.429.0327

Scott Houseman
Senior Software Developer
Junk Mail Publishing (Pty) Ltd
T + 27 12 342 3840 ext 2806 F +27 12 342 3876
E [EMAIL PROTECTED] | www.junkmail.co.za
A 1312 Pretorius Street, Hatfield, Pretoria
P O Box 6574, Pretoria, 0001, South Africa
+27 82 491 8021

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to