HELP!!!
Posted by: mcfelpe (---.107.63.119.pldt.net)
Date: May 26, 2008 05:57AM

how can i set my wamp server to parse php code in html pages...

Options: ReplyQuote
Re: HELP!!!
Posted by: yfastud (Moderator)
Date: May 26, 2008 06:04AM

Just put your php code in html and save it w/ php extension ;-)

Have fun,

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

Options: ReplyQuote
Re: HELP!!!
Posted by: mcfelpe (---.107.63.119.pldt.net)
Date: May 26, 2008 06:18AM

yes i know that, but i want to use .html as my file extension. i know how to do it in my cpanel, i added
AddHandler, now i want to do it in my local host which is wamp. i dont know how to set it up and where to set it up...

Options: ReplyQuote
Re: HELP!!!
Posted by: stevenmartin99 (193.120.116.---)
Date: May 26, 2008 06:31AM

some one tried it yesterday nand said mit didnt work

But its in the httpd.conf file in c:/wamp/bin/apache/apache/conf/

Find the add handler sectiion and add one with php html

Sorry i cannot give exact code as im not on a pc

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

Options: ReplyQuote
Re: HELP!!!
Posted by: 2fer (72.171.0.---)
Date: May 27, 2008 09:12AM

can't you use .htaccess?

Options: ReplyQuote
Re: HELP!!!
Posted by: twohawks (---.lax.dsl-w.verizon.net)
Date: May 27, 2008 10:23PM

Yes, in .htaccess you can use the following:

AddHandler application/x-httpd-php .html .htm

Cheers,
HTH

Love is the Function, No Form is the Tool.

Options: ReplyQuote


Sorry, only registered users may post in this forum.