View Full Version : register_globals
matt22
12-03-2006, 12:04 PM
in php.ini it says that this function is ON, but infact it is not - so how to turn it on?
Thanks
areidmtm
12-03-2006, 12:27 PM
you can edit the php.ini file, but if you do you have to make sure that the edited php.ini file is in every folder that uses php.
indy2kro
12-03-2006, 12:28 PM
If it says it's on, it really IS on .. to test this, you can do a simple file like this:
<?php
echo $in;
?>
Save it as test.php and then call it in your browser (after you upload it) with www_yourdomain_com/test.php?in=123
It should output the value you passed in the URL .. in this case .. 123.
For more informations about global variables check out: http://www.php.net/register_globals
areidmtm
12-03-2006, 01:49 PM
if you can, I wouldn't global variables. I'd use this:
<?php $_GET['URLVAR']; ?>
matt22
12-03-2006, 03:21 PM
you can edit the php.ini file, but if you do you have to make sure that the edited php.ini file is in every folder that uses php.
it worked - thanks
i like bluehost more and more every minute
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.