Re: Browsers don't see PHP scripts?!
| From: | Joseph H Blythe | Date: | Wed, 30 Aug 2000 05:55:46 +0000 |
| Subject: | Re: Browsers don't see PHP scripts?! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14325@lists.php.net to get a copy of this message | ||
"Sergiy P. Zhenochin" wrote:
> Hi,
> I was unable to see any of the sample PHP scripts from the first pages
> of the Manual in Netscape under Linux and IE under Win 2000. What's wrong?!
> Thanks.
>
> _______________________________________________________________
> <html>
> <head>
> <title>Example</title>
> </head>
> <body>
> <B> PHP test </B>
> <?php echo "Hi, I'm a PHP script!"; ?>
>
> <? echo ("this is the simplest, an SGML processing instruction\n"); ?>
>
> <?php echo("if you want to serve XML documents, do like this\n"); ?>
>
> <script language="php">
> echo ("some editors (like FrontPage) don't
> like processing instructions");
> </script>
>
> <% echo ("You may optionally use ASP-style tags"); %>
> <%= $variable; # This is a shortcut for "<%echo .." %>
>
> </body>
> </html>
>
Are you serving the pages from an apache webserver setup to parse fo php or
have you just opened up the document in the browsers?
Joseph