i upload wapdesire n configured it evething ohk but i cant regis even i trie php.ini n htacces i got 500 eror with htacces tried everything but not able to regis plz help my site is CHAT ZONE
wapdesire error plz help
Started on the old forum in May 2011 · view the original in the archive · old links redirect here
registration is on but register globals are of in my host tried to use htacess file got 500 eror used php.ini file to turn golbals on nothing happend when try to regis nothing hapeens n i stay on registration page ? plzhelp me
rajveer wrote: registration is on but register globals are of in my host tried to use htacess file got 500 eror used php.ini file to turn golbals on nothing happend when try to regis nothing hapeens n i stay on registration page ? plzhelp me
Put on .htaccess php_flag register_globals off
if won't work try turn it on.
does ur hosting support .htaccess? if not
try this in php.ini
register_globals=on/off
gud luckk 🙂
Visit my WEBSITE Project: http://www.aspirewap.net
m4ster_v4 wrote: Put on .htaccess php_flag register_globals off
if won't work try turn it on.
does ur hosting support .htaccess? if not
try this in php.ini
register_globals=on/off
gud luckk :)
or try register_globals 1 or 0
i have to put php.ini file in every foder or only in main directory ?
Added after 5 minutes:
Tried everything but always get redircted to regis page
Insert this into /core/functions.inc
function register_globals($order = 'egpcs')
{
// define a subroutine
if(!function_exists('register_global_array'))
{
function register_global_array(array $superglobal)
{
foreach($superglobal as $varname => $value)
{
global $$varname;
$$varname = $value;
}
}
}
$order = explode("\r\n", trim(chunk_split($order, 1)));
foreach($order as $k)
{
switch(strtolower($k))
{
case 'e': register_global_array($_ENV); break;
case 'g': register_global_array($_GET); break;
case 'p': register_global_array($_POST); break;
case 'c': register_global_array($_COOKIE); break;
case 's': register_global_array($_SERVER); break;
}
}
}
and then in /core/main.inc add this line after the incfiles
register_globals();
Can u Plz tell any code to show on my site Index main page there is only online users can i add guest online n registers user means showing code online user8 geust 2 total register12o that way
Added after 5 minutes:
thnx u very much i am getting registerd now
rajveer wrote: Can u Plz tell any code to show on my site Index main page there is only online users can i add guest online n registers user means showing code online user8 geust 2 total register12o that way Added after 5 minutes: thnx u very much i am getting registerd now
what trick u use to registration working ?
Added after 50 minutes:
woody wrote: Insert this into /core/functions.inc
function register_globals($order = 'egpcs') { // define a subroutine if(!function_exists('register_global_array')) { function register_global_array(array $superglobal) { foreach($superglobal as $varname => $value) { global $$varname; $$varname = $value; } } } $order = explode("\r\n", trim(chunk_split($order, 1))); foreach($order as $k) { switch(strtolower($k)) { case 'e': register_global_array($_ENV); break; case 'g': register_global_array($_GET); break; case 'p': register_global_array($_POST); break; case 'c': register_global_array($_COOKIE); break; case 's': register_global_array($_SERVER); break; } } }and then in /core/main.inc add this line after the incfiles
register_globals();
in functions.inc where i put that code ?
