Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Some PHP Help!
#1
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
Reply


Messages In This Thread
Need Some PHP Help! - by microchip13 - 03-11-2006, 03:35 AM
Re: Need Some PHP Help! - by TheTominator - 03-11-2006, 04:40 AM
Re: Need Some PHP Help! - by microchip13 - 03-11-2006, 05:08 AM
Re: Need Some PHP Help! - by TheTominator - 03-11-2006, 05:23 AM
Re: Need Some PHP Help! - by TheTominator - 03-11-2006, 05:33 AM
Re: Need Some PHP Help! - by microchip13 - 03-11-2006, 05:37 AM
Re: Need Some PHP Help! - by shadow - 03-11-2006, 07:00 AM
Re: Need Some PHP Help! - by microchip13 - 03-11-2006, 02:18 PM
Re: Need Some PHP Help! - by TheTominator - 03-11-2006, 04:08 PM
Re: Need Some PHP Help! - by wowzer - 03-11-2006, 04:13 PM
Re: Need Some PHP Help! - by microchip13 - 03-11-2006, 10:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)