Specialerbjudande - från kr9,00/mån
00
DAGAR
12
TIMMAR
43
MINUTER
18
SEKUNDER
Kom igång
×

Kunskapsbas

Hitta artiklar om funktioner och felsökningsguider,
och andra tekniska information om Hostingers webbhotelltjänst.

Problem: Browser tries to download PHP file

Redigerat:
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!

  • Lättanvänt Website Builder
  • 99.9% driftsäkerhet
  • 24/7 Live-support
  • Powerful Control Panel
  • 30 dagars öppet köp
Specialerbjudande!
Från
kr
9
00
/mån
Spara 90%
Kom igång