Re: <script language=php???
| From: | Chris Garaffa | Date: | Sun, 27 Oct 2002 03:30:36 +0000 |
| Subject: | Re: <script language=php??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121574@lists.php.net to get a copy of this message | ||
On Saturday, October 26, 2002, at 09:45 PM, John W. Holmes wrote:
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.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 scriptsthatway, without a .php extension.No, it still has to have a .php extension, or an extension that your web server recognizes as PHP.