The environment for this article is linux+php+apache+mysql.
profile/Startup command
PHP's configuration file is:/etc/php.ini.
The Apache configuration file is:/etc/httpd/conf/httpd.conf
The MySQL configuration file is:/etc/my.cnf.
you need to reboot the Apache server after modifying the configuration.
The restart command is: Service httpd restart
add a suffix type that resolves to php
There is a need, that is, such as the suffix named *.php3 *.phtml file, or even *.aaa file resolution to PHP, then need to change the Apache configuration file/etc/httpd/conf/httpd.conf.
Join AddType application/x-httpd-php AAA.
In this way, a *.aaa file can also be parsed into the PHP language.
For example, there is a a.aaa file, as follows:
Source content is:
<?php
phpinfo ();
? >
PHP require contains remote files
Existing a.php and b.php two files, a.php and b.php are all placed in the same directory in one URL.
The contents of the a.php file are:
<?php
phpinfo ();
? >
The contents of the b.php file are:
<?php
require "http://www.***.com/a.php";
? >
If the Include remote file option is not turned on, the b.php will not execute properly, and b.php will not execute until the remote include file option is turned on.
and http://must add, not plus also not.
The remote include file option is configured in PHP.ini and the Allow_url_include is set to ON.
The php suffix can be added to any unknown type (*.php.dfsdfew)
This is a small problem with Apache, the *.php file followed by an arbitrary unknown type suffix, Apache will be interpreted as PHP.
PHP Debugging
The Var_dump function can print more information.