global function ????[/b]
Help With Coding A New Site
Collapse
X
-
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>
-
try thisyes the Global variables u declare .....for login .....nd tht needs the register globals on[/b]
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('register_globals')) {
$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
-
Guest -
Oh ok thnx bro nd how to declare superglobals variable ? is it jst replacing Globals wid superglobals ??use superglobals which also works in register globals off[/b]<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

Comment