php code does't work
Posted by: avishek (---.63.79.202.ether.static.wlink.com.np)
Date: August 12, 2011 04:59AM

i have installed wamp 2.1 in windows vista 32-bit OS. the versions are matching. but when i try to code php in html, it does not work.

e.g

<html>
<head><title/></head>
<body>
<?php echo'hello there!'; ?>
</body>
</html>

Please suggest me the idea.

Options: ReplyQuote
Re: php code does't work
Posted by: toivo (---.belrs4.nsw.optusnet.com.au)
Date: August 13, 2011 03:23AM

Call the file index.php and change line starting with <head> to the following and it should work:

<head><title>Testing </title></head>

Options: ReplyQuote
now it does work
Posted by: avishek (---.63.79.202.ether.static.wlink.com.np)
Date: August 13, 2011 05:38AM

thankyou, my friend.

Options: ReplyQuote
Re: php code does't work
Posted by: yfastud (Moderator)
Date: August 14, 2011 03:07AM

Or you have to setup to embed and run PHP script in HTML files winking smiley

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.