You can prepend a file to your site by using a .htaccess file.

Scott Houseman wrote:

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 <> 414.429.0327

It's all about the Rush

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to