echo not working!!!

From: Date: Sun, 06 Jul 2003 05:55:39 +0000
Subject: echo not working!!!
Groups: php.general 
Request: Send a blank email to php-general+get-154124@lists.php.net to get a copy of this message
I'm setting up php on the apache server for the first time here running Slackware linux, and I cannot get the echo command to display properly. My source file is phptest.php and it looks like this: <html> <head> <title>PHP Test</title> </head> <body bgcolor="#000000" text="#FFFFFF"> <br><br> <center> <?php echo "<h1>PHP is running.</h1>"; ?> </center> </body> </html> When the page is displayed on my server, it doesn't show the text. Altenatively, if I enclose the quoted string in parenthesis, <?php echo ("<h1>PHP is running.</h1>"); ?> it displays the string AND the closing double quote, paren, semicolon, question mark, and > on a new line. What the hell is going on here? PHP is running. ");?>

« previous php.general (#154124) next »