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!

  • 무제한 웹 사이트 수
  • 24/7 라이브 지원
  • 쉬운 웹 사이트 빌더
  • 2X WordPress 최적화 속도
  • 30 일 환불 보증
제한된 시간 거래를 잡아라!
3.900
00
원 /월
25,470원
3 개월 동안 11,700원
구하다 54%
시작하기