-
Quote:
Originally posted here by the_JinX
Code:
$file = fopen("count.txt", "r+");
if (fputs($file, $count)==FALSE)
{
print "file error \n";
}
Perhaps a silly question, can you explain a bit what this part does. Just out of curiosity. :)
Thanks.
-Edit Looked it up, nevermind, thanks bud.
-
Sure thing.. for the people not wanting to do as Galderon did and RTFM..
Code:
$file = fopen("count.txt", "r+"); // open count.txt for reading and writing ("w" or "w+" could be used instead of r+ (even nicer)) set file pointer at start of file
if (fputs($file, $count)==FALSE) // write new value in count.txt (file pointer) and check for failure
{
print "file error \n"; // failure message
}
-
If someone doesn't understand code, I just send them over to Bravenet.com which offers a wide variety of Free and Pay utilties with a great deal of functionality. However, there is nothing better than programming the functionality yourself even if you do get assistance with the code.