View Single Post
Old 12-13-2007, 10:12 PM   #3 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

I'm guessing you mean that you want to rewrite the file to have different values for each named constant?

if it was me i'd just truncate the exsiting file, then write to the file with the new constants

PHP Code:
$fh fopen('file''w'); 
the 'w' places the file pointer at the beginning of the file and then truncates the file to zero length.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote