Home >Backend Development >PHP Tutorial >How to implicitly call php program, call php_PHP tutorial

How to implicitly call php program, call php_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:50:42821browse

How to implicitly call php program, call php

The example in this article describes the method of implicitly calling php program. Share it with everyone for your reference. The details are as follows:
Copy code The code is as follows:0cc6be8e267c8ae48707a006176a16a53a12bfdd204395fd98908f87ed38ec3d

<&#63;php 
$file_name = "count.txt"; 
$fp = fopen($file_name,"r"); //打开文件读入当前计数 
$count = fread($fp, filesize($file_name)); 
fclose($fp); 
$count++; //计数加1 
$fp = fopen($file_name, "w");
//再次打开文件写入更新后的计数 
fwrite($fp, $count); 
fclose($fp); 
echo "document.write('".$count."')";
//输出JavaScript代码,返回计数 
&#63;> 

I hope this article will be helpful to everyone’s PHP programming design.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1016331.htmlTechArticleHow to implicitly call php program, call php This article describes the method of implicitly calling php program. Share it with everyone for your reference. The details are as follows: Copy the code The code is as follows:mce:scri...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn