note 11445 rejected and deleted from fgets by jmcastagnetto

From: Date: Wed, 21 Feb 2001 18:26:20 +0000
Subject: note 11445 rejected and deleted from fgets by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-11368@lists.php.net to get a copy of this message
what's wrong with my script <? function display($file) { $fopen = fopen($file,"r + "); $num = fgets($fopen,5); $num = $num+1; echo "you are visitor no. "."$num".","; exec( "rm -rf $file"); exec( "echo $num > $file"); } $file = "count.txt"; if ( !file_exists($file) ) { exec( "echo 0 > $file"); } display($file); ?>

« previous php.notes (#11368) next »