FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Stuck on Exercise 1
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Stuck on Exercise 1 [message #178639] Sun, 15 July 2012 12:03 Go to previous message
tim.whittingham is currently offline  tim.whittingham
Messages: 2
Registered: July 2012
Karma:
Junior Member
To my great embarassment. Came away with a copy of PHP5 &
MySQL Bible thinking to do a couple of hours study
every day of my hols with a view to learning a little
elementary PHP to assist me with my CMS website work.
Read through the first couple of Chapters until I came to
Chapter 4 and 'Your First PHP Program 'Hello World'' in
which I am instructed to type

<HTML>
<HEAD>
<TITLE>My first PHP program</TITLE>
</HEAD>
<BODY>
<?php
print(“Hello, cruel world<BR><BR>\n”);
phpinfo();
?>
</BODY>
</HTML>

Saved as .html and viewed with Wampserver I got nothing

but

\n”); phpinfo(); ?>

on the resulting page. Copied and pasted in case of
typos, same result. Installed EasyPHP and got the same
result. Uploaded file to webserver and viewed it on the
web:

\n”); phpinfo(); ?>

on its own and nothing but.

Humph. So, Help please.

Tim W
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Lost $_SESSION in Google Chrome
Next Topic: Business Developer for IT company
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 20:25:03 GMT 2024

Total time taken to generate the page: 0.05077 seconds