Solutions to include a static page in the php page
Source: Internet
Author: User
Include a static page in the php page and use the blog system to create a new page template. The template has been deleted as blank. Now there is another static page for code debugging, which contains some css and js code and a form. Static pages can run normally when used independently, but cannot be imported to the php page. I don't know why. please include a static page in the php page.
I use the blog system to build a website and create a new page template. The template has been deleted as blank. Now there is another static page for code debugging, which contains some css and js code and a form. Static pages can run normally when used independently, but cannot be imported to the php page. I don't know why. please give us some guidance.
By the way, what is the call function for the "page" content in the blog system (not the call function in the new article )? If?
------ Solution --------------------
First, check whether the path is correct.
Generally, templates are stored in a directory.
Its php program is stored in another directory or in its parent directory.
If the js, css, and image paths do not use the path referenced by the website root, the operation will fail.
------ Solution --------------------
The path is wrong. Is codehtml the same as the current php program? Yes. ./Codehtml/file name.
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