logo

Black Friday
Sale

  •  99.9% 在线时间
  •  免费 SSL 证书
  •  24/7 在线支持
  •  30天退款保证
立即开始

高达

91

%

OFF

03
19
20
12
黑色星期五促销!: 虚拟主机
低至 4.75CNH /月!
查看所有优惠
×

知识库

查找有关信息功能,故障排除指南,
以及与虚拟主机相关的其他技术信息的文章。

Problem: Browser tries to download PHP file

引用:
download php file php file downloads download while opening

There might be several ways to fix PHP file download problem, however, in most cases, this is caused due to .htaccess.

Here is how to fix it. Go to your Control Panel -> File Manager, get into your public_html folder and create new .htaccess file, add the following line to it:

AddType application/x-httpd-php .php .htm .html AddHandler x-httpd-php .php .htm .html

Now simply save the file and reload your website, it should work fine now!