On Saturday, October 26, 2002, at 09:45 PM, John W. Holmes wrote:
Ok then without asp how do I get <script language="php"> to work? I
checked out a PHP book today and it did mention running PHP scripts
that
way, without a .php extension.
No, it still has to have a .php extension, or an extension that your
web
server recognizes as PHP.
It might be worth pointing out that this behavior is customizable in
any decent HTTP server. I know Apache lets you specify what extensions
get parsed by which parser.
Being that you're wanting to use ASP, I'm assuming you're also using
IIS. Good luck finding out how to do that.
Your original question (I think, I'm just coming into this thread) was
using PHP and ASP in the same page. You can't do that, but this is how
close you can get: (Note that it's very inefficient and
resource-intensive):
Say you wanted ASP to parse the file first, then PHP. Have the ASP file
be called, do your ASP voodoo there, and then call the PHP file (like
with a HTTP redirect or form submission). Pass variables back and forth
via the querystring.
Not that I'm recommending this. I'm just saying it's possible, if you
absolutely have to do it this way.
--
PHP General Mailing List (
http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php