03-11-2006, 05:08 AM
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
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