can php files be converted to HTM?
A good parameter php file, want to get the final display of the HTM file, in the background how can do?
------Solution--------------------
Ob_start (' HTML ');
function html ($s) {
File_put_contents (basename ($_server[' php_self '). '. htm ', $s);
}
//......
------Solution--------------------
The moderators have already said
You check these 3 functions Ob_start ob_get_contents file_put_contents
------Solution--------------------
echo file_get_contents (' http://www.domain.com/index.php?action=xxx '); Get the generated HTML directly
------Solution--------------------
Are you trying to say, pseudo-static?
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.