Change site style→

style-1 style-2
  1. nazenani
  2. >
  3. >
  4. >
  5. >
  6. About PHP include.

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.

comment

Fields with * is required.

go to related tags archive?