Hi
I have wrote a script using php version 4.3.8 where i have used

$SERVER,$POST,$GET,$REQUEST

and i want to make it compitable with php version 4 in which they dont have this super varaibles..

is there any quickest you change something other then upgrading and changing codes that will make compitable with php version 4.

scrpt is not working on version 4

Anway quick help would be great

    http://www.php.net/reserved.variables

    There are the $HTTP_xxx_xxx superglobals that can be used on PHP versions older than v4.1.0. Not all of the modern superglobals have an older super global, though. Check out the link. Should clear it up.

      Thank you for the reply.

      But I was asking is there any way i can do something in place without changing the entire script.

        I don't know if I would agree that swapping $HTTP_POST_VARS for $_POST is changing the "entire" script given the ability to find & replace functionality in most editors, but I get your point. Aside from what I've suggested, there maybe a flag in the php.ini that I'm not aware of, but someone else would have to point it out as nothing comes to my mind readily.

          Write a Reply...