Implicit call of php program method, call php_PHP tutorial

Source: Internet
Author: User
Implicitly call the php program method and call php. Implicit call to the php program. this example describes the implicit call to the php program. Share it with you for your reference. Details: Copy the code as follows: mce: scri implicitly calls the php program method and calls php

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:

<? Php $ file_name = "count.txt"; $ fp = fopen ($ file_name, "r"); // open the file and read the current count $ count = fread ($ fp, filesize ($ file_name); fclose ($ fp); $ count ++; // count plus 1 $ fp = fopen ($ file_name, "w "); // open the file again and write the updated count fwrite ($ fp, $ count); fclose ($ fp); echo "document. write ('". $ count. "')"; // output JavaScript code, return count?>

I hope this article will help you with php programming.

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: scri...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.