$filename = "PHPCounter.txt"; $fp = fopen( $filename,"r"); $Old = fread($fp, 100); fclose( $fp ); $Old = split ("=", $Old, 5); $NewCount = $Old[1]; $New = "Count=$NewCount"; echo "Visitas:".$NewCount.""; ?>