Updating Older Functions in PHP for register globals compatibility

Posted on 2011-10-27
Last Modified: 2012-06-21
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?
Question by:FourMat
    LVL 7

    Assisted Solution

    no unless a varible of $HTTP_GET_VARS_something has been written, so doing a replace on
    $HTTP_GET_VARS[ would be better
    LVL 16

    Assisted Solution

    by:Chris Harte
    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
    LVL 107

    Accepted Solution

    This might be helpful.  Please read it over and post back with any specific questions. ~Ray

    Author Closing Comment

    Thanks guys.  You were all a big help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now