PHP Online Debugging Implementation method (with demo source code), demo source
In this paper, the implementation of PHP online execution is described. Share to everyone for your reference, as follows:
The results are as follows:
The run.php file is as follows:
Debugging PHP Code
The run2.php file is as follows:
<?php $code = stripslashes ($_post[' php_code '); if (!strstr ($code, ' <?php ')) $code = ' <?php '. Php_eol. $code; File_put_contents (' run3.php ', $code); Header ("location:./run3.php");
Full instance code click here to download this site.
More readers interested in PHP related content can view the topic: "PHP Regular Expression Usage Summary", "Php+ajax Tips and Applications Summary", "PHP operation and operator Usage Summary", "PHP Network Programming Skills Summary", "PHP Basic Grammar Introductory Tutorial", " PHP Operations Office Documentation Tips Summary (including word,excel,access,ppt), PHP date and Time usage summary, PHP Object-oriented Programming primer tutorial, PHP string Usage Summary, php+ MySQL database operation Getting Started tutorial and PHP Common database operation Skills Summary
I hope this article is helpful to you in PHP programming.
http://www.bkjia.com/PHPjc/1123825.html www.bkjia.com true http://www.bkjia.com/PHPjc/1123825.html techarticle PHP Online Debugging implementation method (with the demo source code), demo source This article describes the implementation of PHP online implementation method. Share to everyone for reference, as follows: Operation Effect ...