logo

Black Friday
Sale

  •  99,9 % Dostupnost
  •  Zdarma Doménové jméno
  •  Podpora 24/7 Live
  •  30 denní záruka vrácení peněz
Začněte

Up To

90

%

OFF

00
DAYS
00
HOURS
26
MINUTES
31
SECONDS
Black Friday Sale: Webhosting
z Kč14,50 /Měsíc!
See All Deals
×

Knowledge base

Find articles about information features, troubleshooting guides,
and other technical information related to the hosting service Hostinger.

Problem: Browser tries to download PHP file

Modified on:
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!