Tijdelijke aanbieding - van 0,80€/maand
01
DAGEN
23
UREN
31
MINUTEN
38
SECONDEN
Begin Nu
×

Kennisbank

Vind artikelen over functies, probleemoplossingen,
en andere technische informatie over de Hostinger hostingdiensten.

Problem: Browser tries to download PHP file

Bijgewerkt op:
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!

  • Gemakkelijke Websitebouwer
  • 99.9% Beschikbaarheidsgarantie
  • 24/7 Live Support
  • Powerful Control Panel
  • 30 Dagen Geld Terug Garantie
Limited Time Special Offer!
Vanaf
0
80
/ma
Bespaar 90%
Begin nu