I tried to have an ASP run from within a PHP Page. But it sends the ASP / VBScript codes as they are to the Client/Browser.
So, can we use some other function or command instead of "echo" which can execute ASP/VBScript embedded within a PHP Page?
Code: Select all
<?php
$msg = "Hello PHP";
echo $msg;
echo '<%' .
'Response.Write "<p>Hello ASP</p>"' .
'%>';
echo "Okay!";
?>Why I want to do that is because there is some functionality which I want to use through ASP/VBScript and am unable to achieve it using PHP. In fact, there are variables in PHP whoich I want to use in an embeded ASP to send emails. My PHP for email is not sending the Message Body. I have posted the problem in some other thread.