PDA

View Full Version : Asp + Php?


EJMack
19 Jan 2002, 06:30
is there anyway to combine asp and php?

Mark Hensler
19 Jan 2002, 17:34
Not in the same file. If your server supports both, than you could execute one with the other. Similar to including PERL scripts in you PHP pages.

EJMack
19 Jan 2002, 18:02
how do you execute perl scripts in php?:)

tbloom2002
19 Jan 2002, 18:41
couldnt you do...

include "file.asp";


? hehe.. probably not.. I suck at these things, hehe.

Scott MacVicar
19 Jan 2002, 18:47
<?
exec("perl /path/to/perlfile.cgi > /dev/null'");
?>

thats for unix

for Win32

<?
exec("C:\perl\perl.exe c:\www\perlfile.cgi");
?>

Scott MacVicar
19 Jan 2002, 19:00
its stripped all the / from the windows paths, i hope everyone realises that.

Lesane
06 Feb 2002, 22:12
Originally posted by EJMack
is there anyway to combine asp and php?

There is an option in php.ini:

; Allow ASP-style <% %> tags.
asp_tags = Off

Mark Hensler
07 Feb 2002, 06:19
That just allows for the open/close tags, it still doesn't interpret VBScript.

Lesane
07 Feb 2002, 08:11
Yes, thats tru

EJMack
07 Feb 2002, 14:18
so i take it there is no way to do this?

Scott MacVicar
07 Feb 2002, 15:06
i posted on how to execute perl in php, though asp is a different matter.

malayneum
09 Feb 2002, 12:13
i dont understand why would you want to execute ASP script with PHP ? PHP isnt enough for you or you cant make a script in PHP that work like that ASP script ?

anyway .. you can run ASP with PERL i think ... thats known as Apache :: ASP ... or something similar that :)