• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 182
  • Last Modified:

Updating Older Functions in PHP for register globals compatibility

I am new to  a lot of concepts in php, and I have a questions as I'm going through some older code.  I know that there was an update in PHP to move away from $HTTP_GET_VARS and moved to $_GET. (As well as POST variables)

In many instances I see that there can be a direct substitution from one to the other.  Are there specific instances where I cannot just replace one with the other?
0
FourMat
Asked:
FourMat
3 Solutions
 
amiguraCommented:
no unless a varible of $HTTP_GET_VARS_something has been written, so doing a replace on
$HTTP_GET_VARS[ would be better
0
 
Chris HarteThaumaturgeCommented:
I cannot think of a specific instance, I remember the updates being pretty straight forward. Here is a list of essays on migration from the php website

http://uk3.php.net/manual/en/migration5.php
0
 
Ray PaseurCommented:
This might be helpful.  Please read it over and post back with any specific questions. ~Ray
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_7317-Register-Globals-a-bad-idea-from-day-one.html
0
 
FourMatAuthor Commented:
Thanks guys.  You were all a big help.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now