Pages: Previous12
Current Page: 2 of 2
Re: PHP files being read as HTML?
Posted by: stevenmartin99 (Moderator)
Date: May 19, 2012 05:39PM

Then you didnt use the right url.. or your file has a .txt extension that windows is hiding


use NOTEPAD++ not NOTEPAD

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: PHP files being read as HTML?
Posted by: Teegirl (---.range86-186.btcentralplus.com)
Date: May 19, 2012 05:58PM

I am using komodo edit and i made sure i saved as .php. I even so an hint to put the file name in qoute which i did but it didnt work

I embedded php code in html but it is not loading. when i search online I saw an hint to add the line below to the conf file
AddType application/x-httpd-php .php.

when I checked the file i found some lines like the one above. they are
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
I dont know what to do again. Thank you

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


Sorry, only registered users may post in this forum.