PHP problem for redhat 9

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Simon Lee

    PHP problem for redhat 9

    Dear all,

    My php webpages can be ruun normally, However, when they are moved to the
    other server with Redhat 9, some following problems about php will occur,

    1. when the webpage is linked to other page
    http://www.xxx.com/index.php?item=Aboutus,
    the "item" variable "Aboutus" is no longer valid, Why? How to tackle such
    problem them?
    Does the new version of php no longer support such function,

    Regards,
    Simon



  • Kimmo Laine

    #2
    Re: PHP problem for redhat 9

    "Simon Lee" <simon@yahoo.co m> kirjoitti
    viestissä:dn0gd q$gk7$1@nnews.p acific.net.hk.. .[color=blue]
    > Dear all,
    >
    > My php webpages can be ruun normally, However, when they are moved to the
    > other server with Redhat 9, some following problems about php will occur,
    >
    > 1. when the webpage is linked to other page
    > http://www.xxx.com/index.php?item=Aboutus,
    > the "item" variable "Aboutus" is no longer valid, Why? How to tackle such
    > problem them?
    > Does the new version of php no longer support such function,
    >[/color]


    This is by far the most common question about php. It is asked on daily
    basis in php-related forums. The thing is, as you suspected, that they've
    changed the functionality of that feature. The variables no longer exist by
    default, but you use $_REQUEST, $_POST and $_GET to read them. so instead of
    $item, you'd use $_GET['item'] in your code. to read more about it, see
    http://fi.php.net/register_globals and to change it back the way it worked
    in the old server, edit the register_global s setting in your php.ini...

    --
    SETI @ Home - Donate your cpu's idle time to science.
    Further reading at <http://setiweb.ssl.ber keley.edu/>
    Kimmo Laine <antaatulla.sik anautaa@gmail.c om.NOSPAM.inval id>


    Comment

    Working...