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.
");?>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to