ECHO function not working
Posted by: ERMIS (41.223.201.---)
Date: November 14, 2009 09:15AM

Hi mates,

I have just started learning PHP, I installed WAMP server 2 in windows 2000 operating system, localhost is working fine, but when I try to open the folowing code, nothing shows up, seems like echo function is not working !

<html>
<head>
<title>My First PHP Program</title>
</head>
<body>
<?php
echo ā€œIā€™m a lumberjack.ā€;
?>
</body>
</html>

please help.
thanks in advance.

ERMIS

Options: ReplyQuote
Re: ECHO function not working
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: November 14, 2009 12:22PM

Make sure your saving your code in a .php file. Save all files in C:/wamp//www and go to [localhost] to run your scripts

Options: ReplyQuote
Re: ECHO function not working
Posted by: ERMIS (196.1.218.---)
Date: November 14, 2009 12:33PM

Hi dan

What do u mean by "go to [localhost] to run your scripts"?
How I can do that?

thanks in advance...

Options: ReplyQuote
Re: ECHO function not working
Posted by: toumimi (---.lv.lv.cox.net)
Date: November 14, 2009 05:39PM

Open your browser and type in url 'http://localhost/'.
This can be achieve by clicking localhost in wamp menu (left click on the tray icon)

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: ECHO function not working
Posted by: ERMIS (196.1.218.---)
Date: November 14, 2009 08:39PM

Thanks a lot mates,

actually the main issue was the quotes were not correct as I just copied and pasted from an e-book.

They should be" instead of ā€œ.

ERMIS

Options: ReplyQuote
Re: ECHO function not working
Posted by: yfastud (Moderator)
Date: November 14, 2009 10:03PM


Options: ReplyQuote
Re: ECHO function not working
Posted by: ERMIS (196.1.218.---)
Date: November 15, 2009 12:58PM

Thank u fast..

ERMIS

Options: ReplyQuote


Sorry, only registered users may post in this forum.