PHP code within an html page
Posted by: mcfelpe (---.2.231.223.pldt.net)
Date: May 22, 2008 02:23PM

can anyone help me, i want to insert a php code in my html page, i dont want to use the .php extension for some reason, how will i set up my host and how will i setup my wamp server...

Options: ReplyQuote
Re: PHP code within an html page
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: May 22, 2008 09:13PM

lol can i ask why?!


im not 100% sue but in the httpd file

find this


AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3

and add


AddType application/x-httpd-php .html


thAT should parse files with html thru the php engine

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

Options: ReplyQuote
Re: PHP code within an html page
Posted by: yfastud (Moderator)
Date: May 23, 2008 04:17AM

Even if you manage to make it work, it will not compatible w/ your host, so you should post your error or purposes so people can help you out

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: PHP code within an html page
Posted by: mcfelpe (---.107.63.119.pldt.net)
Date: May 23, 2008 12:09PM

i have to use .html for SEO compatibility issues. im using cpanel and i already tried to add in mime types and the .htaccess file is already changed. the line Addtype application/x-httpd-php .html is already there but for some reason, its not working. is there any other way? pls help me, my nose is bleeding already... sad smiley(

Options: ReplyQuote


Sorry, only registered users may post in this forum.