Implicit call to the php program. Implicit call to the php program this article describes the implicit call to the php program. Share it with you for your reference. The code is as follows: mce: scriptlanguagejavascript implicitly calls the php program
This example describes how to implicitly call a php program. Share it with you for your reference. The details are 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"); // read the current count when opening a file
$ Count = fread ($ fp, filesize ($ file_name ));
Fclose ($ fp );
$ Count ++; // count Plus 1
$ Fp = fopen ($ file_name, "w ");
// Re-open the file and write the updated count
Fwrite ($ fp, $ count );
Fclose ($ fp );
Echo "document. write ('". $ count ."')";
// Output JavaScript code and return the count
?>
|
Examples in this article describes how to implicitly call the php program. Share it with you for your reference. The code is as follows: mce: script language = javascript...