Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Some PHP Help!
#3
I don't really get that?

The variables are dynamic variables.

The variables will only be updated once an hour, but throughout the hour, they will need to be read from the cache(Thus the need to write them somewhere).

I tried using fopen and fwrite, which works, kinda.
When it writes, it adds onto it, not copies over it, and it's having problems reading it.
I'm using:

$handle1 = fopen('/tmp/sunupdown.txt', 'a');
fwrite($handle1, $sun);

then to call it:

$variable123 = exec("cat /tmp/sunupdown.txt");
print(" The sun is $variable123 up");

The file sunupdown right now looks like
notnotnotnotnotnotnot
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)