About PHP include.
Basic knowledge.
- Basic discription
- <?php include($_SERVER['DOCUMENT_ROOT']."/include/header.php"); ?>
“$_SERVER[‘DOCUMENT_ROOT’]” is global parameter of php. It get document root path.
- Work php in html, .htaccess discription
- AddType application/x-httpd-php .htm .html
This may be changed by server environment. Search your server information.
- Use php include in XHTML1.0
- <?php echo'<?xml version="1.0" encoding="utf-8"?>'; ?>
This native sentence is caused php error. so read it as php block.
Refference
comment
go to related tags archive?
SEARCH ARTICLES
in this site
TAG CLUSTER
LATEST COMMENT
in this site
No comment yet.