Posted by Jon Slaughter on 05/28/07 15:37
"Michael" <MichaelDMcDonnell@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.
[Back to original message]
|