When you access resources in apache and directly download their files, accessing the php file will prompt you to download their files. why? The configuration of http. conf for php is as follows: AddType applicationx-httpd-php .phpAddType applicationx-httpd-php .html AddType & nbsp; the application accesses resources in apache to directly download its files.
When accessing the php file, the system prompts you to download the file. why? The configuration of php in http. conf is as follows:
AddType application/x-httpd-php. php
AddType application/x-httpd-php. html
AddType application/x-httpd-php. htm
LoadModule php5_module "D:/php/php5apache2_2.dll"
PHPIniDir "D:/php. ini"
Share: More
------ Solution --------------------
Check whether the php5apache2_2.dll file exists in D:/php?
PHPIniDir "D:/php. ini"
Change
PHPIniDir "D:/php /"