Date: 11/30/99
- Previous message: Richard Lynch: "Re: [PHP3] tempnam() question."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi List
I tried this script. But the count.txt is not updating /
incrementing....... What's the problem here ??. Why is not getting
incremented and I wanted to include in my site: index.php3 !.
<?php
$counterFile = "count.txt";
function displayCounter($counterFile) {
$fp = fopen($counterFile,rw);
$num = fgets($fp,5);
$num += 1;
print "$num";
// exec( "rm -rf $counterFile");
exec( "echo $num > $counterFile");
}
if (!file_exists($counterFile)) {
$a=1+$counterFile;
echo $a;
// exec("echo 2 + $counterFile");
}
displayCounter($counterFile);
?>
-- Someone Plz. help me on this. Thanx in advance.
-- Regards, TV Karthick Kumar Aspire Systems, India karthick <email protected>-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Previous message: Richard Lynch: "Re: [PHP3] tempnam() question."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

