quick question, i think somethign might be up with the php.ini file but heres the situation:
I have the following code in a prepend file which is called by php.ini:
session_start();
session_register('refcode');
echo "$refcode";
// refcode stuff
if(empty($refcode) || strlen($refcode) != "11"){
$allow = "123456789";
srand((double)microtime()*1000000);
for($i=0; $i<11; $i++) {
$refcode .= $allow[rand()%strlen($allow)];
} }
Then i created a simple test.php3 file that just says echo $refcode
Based on the code above that the prepend file has, refcode shoudl be stored as a session variable. when i load test.php3 a number is displayed. when i hit refresh it changes every time instead of remaning static.
i ran the same code on another server and it ran fine.
what could be the problem? thanks in advance for any help.