Some of the scripts im using eg. wapbuddy directory list will not work without turning the register_global = on http://ca.php.net/register_globals so as PHP6 is nearly coming and will of course use by most of webhosters is somewhat kinda alarm me (im not a pro coder so will take sometime to fix some scripts to make it work without turning the global_register to on) so with this, i hope those who are using some scripts which relies in turning the said code to make their scripts work, start recoding it now before you run out of site visitors 🙂
PHP6 & register_global = on
Started on the old forum in March 2009 · view the original in the archive · old links redirect here
if you want to layon script by it self
With GET and POST toolz
$page = $_GET['page']; $email = $_POST['EMAIL'];
All my scripts are done like that also it auto thinks register_global = on is on but its not
also it makes the site abit better on ways:)
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
Thanks for that info subzero 🙂 hmm... maybe you can explain to me why some scripts work only by turning on the registry global? maybe some example? Im using this snippet in wapbuddy and by turning the it off (the registry global) this wont work. Im trying to read some info on php.net that i can use the function $_request but you might have another way of doing it. Anyway, this snippet is a addon to a wapbuddy directory list.
echo '
<form action="'.$_SERVER["PHP_SELF"].'" method="get"> Jump to Page: <input class="box" name="npage" title="Jump to Page:" size="3" value="" maxlength="3"/> <input type="submit" value="Go"/></form>';modfiles wrote: Thanks for that info subzero 🙂 hmm... maybe you can explain to me why some scripts work only by turning on the registry global? maybe some example? Im using this snippet in wapbuddy and by turning the it off (the registry global) this wont work. Im trying to read some info on php.net that i can use the function $_request but you might have another way of doing it. Anyway, this snippet is a addon to a wapbuddy directory list.
echo '
<form action="'.$_SERVER["PHP_SELF"].'" method="get"> Jump to Page: <input class="box" name="npage" title="Jump to Page:" size="3" value="" maxlength="3"/> <input type="submit" value="Go"/></form>';
it wil work $npage = $_GET['npage'];
modfiles wrote: Thanks for that info subzero 🙂 hmm... maybe you can explain to me why some scripts work only by turning on the registry global? maybe some example? Im using this snippet in wapbuddy and by turning the it off (the registry global) this wont work. Im trying to read some info on php.net that i can use the function $_request but you might have another way of doing it. Anyway, this snippet is a addon to a wapbuddy directory list.
echo '
<form action="'.$_SERVER["PHP_SELF"].'" method="get"> Jump to Page: <input class="box" name="npage" title="Jump to Page:" size="3" value="" maxlength="3"/> <input type="submit" value="Go"/></form>';
you can use this code
//////////////////////////////////////////
foreach($_POST AS $key => $value) {
${$key} = $value;
}
foreach($_GET AS $key => $value) {
${$key} = $value;
}
///////////////////////////////////////////
or
foreach($HTTP_GET_VARS as $key=>$val){
$$key=$val;
}
foreach($HTTP_POST_VARS as $key=>$val){
$$key=$val;
}
then you dnt need to turn on register globals
Spook wrote: you can use this code
////////////////////////////////////////// foreach($_POST AS $key => $value) { ${$key} = $value; } foreach($_GET AS $key => $value) { ${$key} = $value; } ///////////////////////////////////////////then you dnt need to turn on register globals
works good. thanks 🙂