php doesn't parese
Posted by: pinakidevenv (116.193.135.---)
Date: November 04, 2011 11:15PM

I have installed 2.2a, x64, but unfortunately it doesn't parse php code in html file. webserver & mysql working.
Please help me any body.

OS: Windows7 x64

Thank you,
pinaki

Options: ReplyQuote
Re: php doesn't parese
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: November 04, 2011 11:23PM

This is correct. Name your file .php

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

Options: ReplyQuote
Re: php doesn't parese
Posted by: pinakidevenv (116.193.135.---)
Date: November 04, 2011 11:39PM

@stevenmartin99

php code is not parsed by wamp, even echo statement. as if there is no php in the wamp server.

Thank You,
pinaki

Options: ReplyQuote
Re: php doesn't parese
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: November 05, 2011 12:13AM

It's a user error

Make sure ur file is a .php File
Make sure u use full php tags <?php ?>
Make sure u are accessing the page thru localhost and not just opening the file

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

Options: ReplyQuote
Re: php doesn't parese
Posted by: yfastud (Moderator)
Date: November 05, 2011 01:07AM

And make sure your php files does not have hidden .txt extension

To embed PHP scripts in HTML files, you have to setup in either httpd.conf or htaccess winking smiley
# Parsing PHP script in HTML files on Windows (WAMP)
AddType application/x-httpd-php .html

Have fun,

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.