Help With Coding A New Site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    global function ????[/b]
    yes the Global variables u declare .....for login .....nd tht needs the register globals on
    <span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>

    Comment


      #17
      yes the Global variables u declare .....for login .....nd tht needs the register globals on[/b]
      use superglobals which also works in register globals off

      Comment


        #18
        yes the Global variables u declare .....for login .....nd tht needs the register globals on[/b]
        try this

        IN ur site ini.php
        Add this


        $register_glob = 1; //register_globals 1=on 0=off


        and

        ////////////////////Register Globals//////////////////////////////////////

        if ($register_glob == 1){
        if (!ini_get(&#39;register_globals&#39;)) {
        $superglobals = array($_SERVER, $_ENV, $_FILES, $_COOKIE, $_POST, $_GET);

        if (isset($_SESSION)) {
        array_unshift($superglobals, $_SESSION);
        }

        foreach ($superglobals as $superglobal) {
        extract($superglobal, EXTR_SKIP);
        }
        }
        }
        /////////////

        if this nt work then let me know

        Comment


          #19
          Take me drunk i&#39;m home

          Click here!!!

          Comment


            #20
            yeah supply the booz and ill help msn addy looony_guy79@hotmail.com

            Comment


              #21
              use superglobals which also works in register globals off[/b]
              Oh ok thnx bro nd how to declare superglobals variable ? is it jst replacing Globals wid superglobals ??
              <span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>

              Comment


                #22
                Oh ok thnx bro nd how to declare superglobals variable ? is it jst replacing Globals wid superglobals ??[/b]
                superglobal variables are:
                Code:
                $GLOBALS
                $_SERVER
                $_GET
                $_POST
                $_FILES
                $_COOKIE
                $_SESSION
                $_REQUEST
                $_ENV
                for example
                Code:
                 $_SERVER[&#39;HTTP_USER_AGENT&#39;]

                Comment

                Working...
                X