Re: echo not working!!!

From: Date: Sun, 06 Jul 2003 16:04:32 +0000
Subject: Re: echo not working!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154125@lists.php.net to get a copy of this message
Hi, Sunday, July 6, 2003, 3:55:39 PM, you wrote: a> I'm setting up php on the apache server for the first time here running a> Slackware linux, and I cannot get the echo command to display properly. a> My source file is phptest.php and it looks like this: a> <html> a> <head> a> <title>PHP Test</title> a> </head> a> <body bgcolor="#000000" text="#FFFFFF"> a> <br><br> a> <center> a> <?php echo "<h1>PHP is running.</h1>"; ?> a> </center> a> </body> a> </html> a> When the page is displayed on my server, it doesn't show the text. a> Altenatively, if I enclose the quoted string in parenthesis, a> <?php echo ("<h1>PHP is running.</h1>"); ?> a> 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? a> PHP is running. ");?>> make sure you have a line like AddType application/x-httpd-php .php in httpd.conf and that you restarted apache -- regards, Tom

« previous php.general (#154125) next »