Re: Installing PHP 5.0 - viewing php script
| From: | Jaap van Ganswijk | Date: | Tue, 02 Mar 2004 08:58:19 +0000 |
| Subject: | Re: Installing PHP 5.0 - viewing php script | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-12887@lists.php.net to get a copy of this message | ||
At 2004-03-01 16:07, Hari Bhanujan wrote:
>The problem is that when I try to embed php inside of an html file, I can see all the html tags
>reflecting fine when the html file is parsed through a browser (IE, Mozilla), but I cannot see the
>php script.
You are not supposed to see the PHP script in the browser
because it's executed on the server.
Try a page like:
<h1>Test</h1>
<?php
echo "<h2>Test</h2>\n";
?>
This should result in two headers being shown.
Also try:
<?php
phpinfo();
?>
Greetings,
Jaap