Forum Moderators: open

Message Too Old, No Replies

including a php file in asp

can it be done?

         

laura2k

1:45 pm on Feb 7, 2004 (gmt 0)



can i include a php script in my asp page? if so how. I tried:

<!-- #include file="test.php" -->

but instead of the php executing it seems to just show the php code.

thanx

txbakers

2:12 pm on Feb 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



as you've discovered, it won't work. Different technologies.

The "include" function only brings in the code to be executed. It doesn't execute the code first.

Remember, a bird may love a fish, but where would they make a home together?

Xoc

2:49 pm on Feb 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think maybe that Server.Execute("test.php") or Server.Transfer("test.php") might do what you want.