Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I wann'a to use together ASP & php in Internet Information

Status
Not open for further replies.

cibrran

Programmer
Feb 24, 2001
77
CA
I wann'a to use together ASP & php in Internet Information

Server

and so do not then

could you to use ASP & php code in Apache on Linux!

How do slove this problem..........

if has nice solution please write this place



this will be appreciated!

so do not then.........
 
ASP runs primarily on IIS (Microsoft). You can also run it on Linux using the Chili!Soft product.

PHP (as far as I know) only runs on Linux (not IIS).

So the two do not intermix at all, unless you have two servers and some way for them to talk to each other. Sorry.

Chip H.
 
ASP does run on Linux and PHP does run on NT. However you can't run them together, unless you find a Microsoft Active Scripting version of PHP (like ActivePERL is a active scripting compatible version of PERL).

However, I don't think that there is one.

The reason you can't use them both is that .ASP files are interpreted by the Microsoft Scripting Engine, and .PHP files are interpreted by the PHP Scripting Engine. You can't have a file that is executed by two engines.

You _could_ do it, by using ASP to write a .PHP file out to disk, then redirect to the PHP file with response.redirect. Or the opposite, using PHP to write an ASP file.

That seems rather awkward though, and you could probably come up with a much more elegant and better performing solution using just one script or the other.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top