PHP gurus, quick help needed.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PhillipB
    Just a Simple Carpenter
    • May 2003
    • 1338

    #1

    PHP gurus, quick help needed.

    Migrated our FHG's to a new server this morning, but now PHP linking codes are breaking. On this gallery for example:

    http://www.grannygummers.net/29/index.htm?id=MjAwOjM6Mg

    You'll notice the links come up like this: http://join.grannygummers.com/track/

    But should come up like this: http://join.grannygummers.com/track/MjAwOjM6Mg

    The code in the gallery is this: http://join.grannygummers.com/track/<? echo $id; ?>


    Here is the phpinfo if you need it: http://grannygummers.net/phpinfo.php

    Any ideas?
  • PornGeneral
    Confirmed User
    • Sep 2004
    • 564

    #2
    Your $id variable is not getting set. That is why it is blank.
    Last edited by PornGeneral; 07-13-2005, 01:19 PM.
    "The object of war is not to die for your country but to make the other bastard die for his." -Patton
    "Only the dead have seen the end of war." -Plato

    Comment

    • psili
      Confirmed User
      • Apr 2003
      • 5526

      #3
      Try

      Code:
      <?=$_GET['id']?>
      as I'm guessing global variables are turned off, or something, on the new server's php.ini file.
      Your post count means nothing.

      Comment

      • teksonline
        So Fucking Banned
        • Jan 2005
        • 2904

        #4
        looks to me like your mod rewrite .htaccess is not working, dont see anythign php related here at all or am I still sleeping? just got up

        check .htaccess

        Comment

        • swedguy
          Confirmed User
          • Jan 2002
          • 7981

          #5
          What psili said, that will do the trick.

          Comment

          • kernelpanic
            Too lazy to set a custom title
            • Jan 2005
            • 2961

            #6
            register globals


            ZangoCash - Turn Your Traffic Into Ca$h.
            $.40 Per Install - No Tier

            Comment

            • Due
              Confirmed User
              • Mar 2001
              • 3620

              #7
              Open php.ini and find: register_globals, set it to register_globals = on
              register_globals is set to OFF, so it does not read anything from a querry string unless you use $_GET or $_POST commands.
              I buy plugs
              Skype: Due_Global
              /Due

              Comment

              • jwerd
                Confirmed User
                • Jun 2003
                • 1953

                #8
                Originally posted by psili
                Try

                Code:
                <?=$_GET['id']?>
                as I'm guessing global variables are turned off, or something, on the new server's php.ini file.
                If that doesn't work, I would say the $id is probably tied into a database somehow and the connection isn't being made. Maybe I am missing something, but it's probably that register globals is on and your new server has it off. Goodluck!
                Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com

                Comment

                • AcidMax
                  Confirmed User
                  • May 2002
                  • 1827

                  #9
                  Considering the file extension you have is .htm you may need to tell apache (assuming you are using apache) in httpd.conf to parse .htm / .html files or put it in your .htaccess, by default a query string will not be parsed into an htm or html file without it being parsed by php.
                  Latest MMA news. http://www.mmawrapup.com

                  Comment

                  Working...