Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    New Zealand
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Query String Issue

    I have just installed PHPDEV but have a problem - I can't pass variables through the url. Links that were fine on my remote server just act as though there was no query string at all.

    I have posted my problem at the firepages.com.au forum but have had no response yet, I was hoping that maybee someone would have some idea of what the problem could be.

    I have never installed Apache on this pc before, I am running WinXP (NTFS).

    Cheers, appreciate any help.
    eTheory - the theory of revolution

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you go to his website and search in the forums there you will find your answer. It has to do with changing this line:
    register_globals=On

    in the php.ini file. You need to set that to "On" for it to work.

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Originally posted by requestcode
    If you go to his website and search in the forums there you will find your answer. It has to do with changing this line:
    register_globals=On

    in the php.ini file. You need to set that to "On" for it to work.
    Well that would not really be the problem. You can pass variables through the query string with register globals off. The problem is how you refer to those variables ie.

    HTTP_GET_VARS["yaks"] for globals on

    _GET["yaks"] for globals off.

    If you host has set set your globals to on then it might be a good idea to set up your development envioronment that way however using globals in general is just a bad idea and webhosts are only going back and setting the newer versions of PHP to register globals to on because so many people are already using programs that were written for globals being off or were written poorly.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    New Zealand
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks to both of you, I understand the whole system a little better now.
    eTheory - the theory of revolution


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •