RE: [PHP-GTK] Having Trouble With Certain Functions

From: Date: Thu, 18 Nov 2004 01:07:53 +0000
Subject: RE: [PHP-GTK] Having Trouble With Certain Functions
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5248@lists.php.net to get a copy of this message
Can you describe the full path to this program, and the URL you are using in your browser to reach this thru your apache server? Warren Vail > -----Original Message----- > From: Anthony Marlow [mailto:aomarlow@yahoo.com] > Sent: Wednesday, November 17, 2004 4:48 PM > To: php-gtk-general@lists.php.net > Subject: [PHP-GTK] Having Trouble With Certain Functions > > > Hi, > > I'm using a book called, "PHP 5/MySQL Programming for the Absolute > Beginner," by Andy Harris. > > In the book, he's using certain functions that are not working for me: > > Ex: Row, Row Row your boat program > > The program begins with the usual HTML code, then proceeds > with the PHP as > follows: > > <? > $verse = <<<HERE > Row, Row, Row, your boat<br> > Gently down the stream<br> > Merrily, Merrily, Merrily, Merrily<br> > Life is but a dream<br> > <br><br> > HERE; > > print "<h3>Verse 1:</h3>; > print $verse; > > print "<h3>Verse 2:</h3>; > print $verse; > print "<h3>Verse 3:</h3>; > print $verse; > > ?> > > Then it ends with the closing body and html tags. > > When I run this program, nothing happens at all. It won't > debug either. I > just get no response at all. > > Also, in a typical Hello World program, the author uses the > following code > which doesn't work either: > > <html> > <head> > <title>Hellow in PHP</title> > </head> > <body> > <h1>Hellow in PHP</h1> > > <? > print "Hello, world!"; > phpInfo(); > ?> > > </body> > </html> > > > This phpInfo() function is supposed to print out a very large > table with a > lot of information. Instead of the table, when I run this > program I get the > html code printed out, as if it's not going through the > server first, and I > don't get the table at all. > > Can anyone tell me what I'm doing wrong here? I'm using > Apache, and it > tests OK. It seems to be up and running correctly. But for > some reason, > the two programs above won't work for me. The other programs > I've seen in > the book so far do work correctly, so I'm stuck for answers. > > I'd really appreciate it if anyone could help me solve this > puzzle. I'd be > glad for any suggestions. > > Thanks you, > Anthony > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.gtk.general (#5248) next »