For example, I have a common. php file with the content of & lt ;? Phpif (extension_loaded ('zlib ') {ob_start ('OB _ gzhandler');} if (extension_loaded ('zlib') {ob ask a question about include
For example, I have a common. php file with the following content:
If (extension_loaded ('zlib ') {ob_start ('OB _ gzhandler ');}
If (extension_loaded ('zlib ') {ob_end_flush ();}
?>
This is a piece of code to enable zlib. The first sentence is enable, and the last sentence is end. I want to insert it to index. in php, because index. php still has some code. how can I automatically insert the first sentence to the top and the last sentence to the end of the page? Can I use include? what is the specific operation? thank you.
------ Solution --------------------
Put the initialization part in the header and the output in the footer.
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.