Reply to Re: It appears that <?php ... ?> is not portable. If this is true, why do so many scripts use it?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация