note 40304 added to faq

From: Date: Sat, 28 Feb 2004 03:01:45 +0000
Subject: note 40304 added to faq
Groups: php.notes 
Request: Send a blank email to php-notes+get-65912@lists.php.net to get a copy of this message
Check this code and tell me if you like it <HTML> <BODY> <?php if (file_exists("cont.txt")==true){ $abrir=fopen("cont.txt","r+"); $contador=fgets($abrir,10); $contador++; rewind($abrir); fwrite($abrir,$contador); fclose($abrir); }else{ $fp =fopen("cont.txt","a"); fwrite($fp,1); fclose($fp); } ?> <br> <br> <?php echo "Contador actual de vistas"; readFile("cont.txt"); ?> </HTML> </BODY> ---- Manual Page -- http://www.php.net/manual/en/faq.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40304 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40304&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40304&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65912) next »