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
Re: Stuck on Exercise 1 [message #178644 is a reply to message #178640] Sun, 15 July 2012 13:37 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 7/15/2012 8:16 AM, The Natural Philosopher wrote:
> tim(dot)whittingham(at)googlemail(dot)com wrote:
>> 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
>
> AFAIK all php programs MUST start with <?php even if they are
> immediately reverted to text with ?>
>
> So try
>
> <?php ?>
>
> as the first line.
>

We know you don't know much, don't we?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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 Nov 22 19:19:25 GMT 2024

Total time taken to generate the page: 0.06876 seconds