Re: echo not working!!!
| From: | David Nicholson | Date: | Sun, 06 Jul 2003 16:05:13 +0000 |
| Subject: | Re: echo not working!!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154126@lists.php.net to get a copy of this message | ||
Hello,
This is a reply to an e-mail that you wrote on Sun, 6 Jul 2003 at 16:57,
lines prefixed by '>' were originally written by you.
> <?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.
> ");?>
At a guess I would say that your PHP is not being parsed as PHP, if you
view the source of your output you will probably see <?php echo
("<h1>PHP is running.</h1>"); ?> but your browser is treating <?php
echo ("<h1>PHP is running.</h1> as a tag that it does not understand and
displaying the "); ?> as text.
If this is the case you need to check your httpd.conf.
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
http://www.djnicholson.com/
QuizSender.com - How well do your friends actually know you?
http://www.quizsender.com/
(developed entirely in PHP)