
John Sims - 2007-01-23 13:49:57
I am very new to PHP. With everyone turning global varibales off in the php.ini for security, I am having trouble understanding how to set and pass variables from one program to another that are not going through a FORM.
Example:
program1.php
$error_log = "9";
program2.php
if ($error_log == "9")
{
print "okay";
}
else
{
print "BAD";
}
That is a crude example but it shows that a variable is set in one program and then used in another. I really do not see how it is set in program1.php and then used in program2.php.
I have read several classes in PHPClasses and on php.org and it really doesn't make sense. Most all deal with when it is coming from a FORM.
Thank you for your help.
John