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
Collapse
X
-
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 waysVisit: 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...
_______
Info & Tips
php.net
w3schools.com
-
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 '<br /><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>';Last edited by modfiles; 20.03.09, 20:12.
Comment
-
Originally posted by modfiles View PostThanks 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 '<br /><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>';
$npage = $_GET['npage'];
Comment
-
Originally posted by modfiles View PostThanks 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 '<br /><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>';
Code:////////////////////////////////////////// foreach($_POST AS $key => $value) { ${$key} = $value; } foreach($_GET AS $key => $value) { ${$key} = $value; } ///////////////////////////////////////////
Code:foreach($HTTP_GET_VARS as $key=>$val){ $$key=$val; } foreach($HTTP_POST_VARS as $key=>$val){ $$key=$val; }
Last edited by Anshul; 21.03.09, 05:53.
Comment
-
Originally posted by Spook View Postyou can use this code
Code:////////////////////////////////////////// foreach($_POST AS $key => $value) { ${$key} = $value; } foreach($_GET AS $key => $value) { ${$key} = $value; } ///////////////////////////////////////////
Comment
Comment