logo


Oferta Black Friday

  •  99,9%Program de funcționare
  •  Certificat SSL gratuit
  •  24/7 asistenţă live
  •  30 de zile banii înapoi garantat
Începe

Până la

90

%

OFF

04
ZILE
23
ORE
20
MINUTE
26
SECUNDE
Oferta Black Friday: Găzduire web
De la 0,59€ /Lună!
Vezi Toate Ofertele
×

Baza de cunoștințe

Găseşte articole despre caracteristici, ghiduri de depanare,
şi alte informaţii tehnice referitoare la serviciile de găzduire Hostinger.

Problem: Browser tries to download PHP file

Modificat la:
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!