No, see http://uk.php.net/manual/en/language.basic-syntax.php
I quote: "There are four sets of tags which can be used to denote blocks of
PHP code. Of these, only two (<?php. . .?> and <script language="php">. .
.</script>) are always available;"
<script language="php"> /* PHP CODE */ </script> is perfectly valid way of
escaping from HTML into PHP.
G
"Warren Vail" <[EMAIL PROTECTED]> wrote in message
news:006401c27d0a$9872cac0$9b897ed8@;WarrenVail...
> Don't know if this will help, but it looks to me that you are trying to
> identify a browser based scripting language in html format;
>
> <script language="php">
>
> For that to work, Netscape and IE would need to be able to execute your
> code, and as of my last check that wasn't even in the works. PHP is
> designed to run "server side", not "browser side".
>
> To your second question; ASP is a server side language running under IIS,
> and if installed properly PHP is also. That does not mean that you can
> switch to PHP coding in a ASP script, but there should be ways that they
can
> interface. Haven't tried this but if you have a way in ASP to invoke
> another URL (Include may not do the trick) something like PHP's
>
> $fp =
fopen("http://www.yourdomain.com/info/test.php?parm1=5&parm2=3","r");
> $info = fread($fp,2048);
>
> Notice that you can pass parameters in the "get" format to the URL, and
> $info contains the data generated by the PHP script (there should be some
> equivalent technique in ASP). This technique should work with relative
> URL's as well.
>
> there are probably other methods of doing the same thing as well, good
luck.
>
> Warren Vail
> [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Jason Porembski [mailto:jporembs@;optonline.net]
> Sent: Friday, October 25, 2002 8:32 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] <Script language=php???
>
>
> Hey folks. I am attempting to run PHP code with <script language="php">
and
> it doesn't work. Any ideas as to why and how I can fix that? Also what
is
> the best way to run a snippet of PHP code in an ASP page? Thanks in
> advance.
>
> Jason "Gluten Mifflin" Porembski
> http://www.world-gaming.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php