Methods for implicitly invoking PHP programs
This article describes the implicit method of invoking PHP programs. Share to everyone for your reference. Specific as follows:
The code is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$file _name = "Count.txt"; $fp = fopen ($file _name, "R"); Open file read-in current count $count = Fread ($fp, FileSize ($file _name)); Fclose ($FP); $count + +; Count plus 1 $fp = fopen ($file _name, "w"); Re-open the file after the update count is written Fwrite ($fp, $count); Fclose ($FP); echo "document.write ('". $count. "')"; Output JavaScript code, return count ?> |
http://www.bkjia.com/PHPjc/1016472.html www.bkjia.com true http://www.bkjia.com/PHPjc/1016472.html techarticle implicit method of invoking PHP programs This article describes the implicit method of invoking PHP programs. Share to everyone for your reference. The code is as follows: Mce:script language = JavaScript ...