Home > Article > Backend Development > PHP Tutorial.Application Example 13_PHP Tutorial
Two methods to implement user identity authentication in PHP (2)
AddType application/x-httpd-php4 .php3
AddType application/x-httpd-php4 .php4
Action application/x-httpd-php4 /php4 /php.exe
If you want to make PHP support more suffixes, no problem. The given configuration file mod_php4.conf already supports three suffixes: php, php3, and php4. If you want to support more suffixes, you can change this file. It is very simple.
4. Test
Test with phpinfo(); ?>. You will see that the value of Server API is apache, not cgi, and there is also information about HTTP Headers Information.