|
Posted by Michael on 05/28/07 15:44
On May 28, 8:37 am, "Jon Slaughter" <Jon_Slaugh...@Hotmail.com> wrote:
> "Michael" <MichaelDMcDonn...@yahoo.com> wrote in message
>
> news:1180365240.818621.26220@x35g2000prf.googlegroups.com...
>
> > I'm new to PHP.
>
> > Evidently my ISP's server does not recognize <?php ... ?>, but it does
> > recognize <script language="php"> ... </script>, which would imply
> > that <?php ... ?> is not portable.
>
> > If in fact <?php ... ?> is not portable, why are so many PHP scripts
> > using it?
>
> if you trying that and it doesn't work then chances are there is no php
> parser on the server or your doing somethign wrong. Make sure your ISP
> supports php first... or since you can use the html tag maybe the parser is
> not setup right or something else...
>
> also you have to name the ext php to use have the parser parse it..
>
> if you do
>
> test.html,
>
> <?php echo "hello"; ?>
>
> then that is not php code but html text...
>
> so you have to put it as test.php.
=============================
Thanks to all of you for your help. I'll check and make sure that the
test I ran used proper syntax. I believe the server that I'm connected
to is Windows based, but I assume that that should make no difference.
Navigation:
[Reply to this message]
|