03-11-2006, 03:35 AM
First off, how can I store some PHP variables into a file? Maybe like:
$variable = ("/var/www/html/whatever/whatever.txt");
Also!
I'm having a problem(More important that above).
Running the script in the shell, it works fine, it'll print both variables, however on the web, in both firefox and safari, it'll only show one variable.
The code in the php script that outputs it is:
print(" The sun is $sunupdown up and the weather is currently $condition ");
?>
In the shell I get
The sun is not up and the weather is currently Partly Cloudy
On the web I get:
The sun is up and the weather is currently Partly Cloudy
Any ideas?
Thanks
$variable = ("/var/www/html/whatever/whatever.txt");
Also!
I'm having a problem(More important that above).
Running the script in the shell, it works fine, it'll print both variables, however on the web, in both firefox and safari, it'll only show one variable.
The code in the php script that outputs it is:
print(" The sun is $sunupdown up and the weather is currently $condition ");
?>
In the shell I get
The sun is not up and the weather is currently Partly Cloudy
On the web I get:
The sun is up and the weather is currently Partly Cloudy
Any ideas?
Thanks