Pavlos1316 Posted May 28, 2008 Share Posted May 28, 2008 server is not mine!!! Link to comment https://forums.phpfreaks.com/topic/107690-how-to-change-httpdconf-file-so-that-it-handles-html-as-php/ Share on other sites More sharing options...
DarkWater Posted May 28, 2008 Share Posted May 28, 2008 I beg of you to not make new topics for problems that you've already presented in your other thread. Link to comment https://forums.phpfreaks.com/topic/107690-how-to-change-httpdconf-file-so-that-it-handles-html-as-php/#findComment-552064 Share on other sites More sharing options...
Pavlos1316 Posted May 28, 2008 Author Share Posted May 28, 2008 ok... sorry Link to comment https://forums.phpfreaks.com/topic/107690-how-to-change-httpdconf-file-so-that-it-handles-html-as-php/#findComment-552067 Share on other sites More sharing options...
DarkWater Posted May 28, 2008 Share Posted May 28, 2008 And because the server isn't yours, you can't directly edit the httpd.conf file. I'm not sure if that can be done in .htaccess files either, so it'd be better to just rename the files to .php. Link to comment https://forums.phpfreaks.com/topic/107690-how-to-change-httpdconf-file-so-that-it-handles-html-as-php/#findComment-552068 Share on other sites More sharing options...
BlueSkyIS Posted May 28, 2008 Share Posted May 28, 2008 to have apache parse html as php, add this to .htaccess AddType application/x-httpd-php .html sometimes you don't want people to casually know what type of technology you're using, so it is useful to change the extension used by your scripts, e.g., from .php to .html Link to comment https://forums.phpfreaks.com/topic/107690-how-to-change-httpdconf-file-so-that-it-handles-html-as-php/#findComment-552077 Share on other sites More sharing options...
DarkWater Posted May 28, 2008 Share Posted May 28, 2008 It should work like that, but I'm not sure, which is why I didn't post it. xD Link to comment https://forums.phpfreaks.com/topic/107690-how-to-change-httpdconf-file-so-that-it-handles-html-as-php/#findComment-552078 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.