You can put PHP code inside an include
file in the server and call it from ASP. You'll need to tell your webserver (I assume it is IIS) that it understands how to process PHP scripts - see PHP installation document for Windows.
example.
1. php_code_include.php
<script language='php' runat='server'>
<?
function test_php($var)
{
phpinfo();
echo "$var";
}
?>
</script>
- sample asp script
<% @LANGUAGE="VBSCRIPT" %>
<!--#include file="php_code_include.php" -->
<%
' Call the PHP function
test_php "Hello World";
%>
Caution:
I have not worked with PHP for almost an
year now. And this code is not tested. However, similar mixing of VBScript
and Python works for me. You'll certainly
have to research how Microsoft's Server
Objects are exposed (or whether they
can even be exposed) in PHP.
Good luck
vsb
http://vsbabu.csoft.net