Friday, July 31, 2009

Is it possible to use PHP and ASP in the same webpage?

I know you can use %26lt;?php (Code) ?%26gt; to start PHP code in the body of an HTML program. But can I go





%26lt;?php


(PHP code)


?%26gt;


%26lt;%


(ASP code)


%%26gt;





?


Please explain your answer.

Is it possible to use PHP and ASP in the same webpage?
Yes !





I am just learning PHP and ASP a good site for information would be WWW.W3SCHOOLS.COM.





I have been living on this site for last couple of weeks. Awsum site.
Reply:No. In order to support ASP code you need IIS, the Windows webserver. To support PHP you need the Apache webserver with PHP installed. Since you can only have one webserver service (IIS or Apache) installed on the server, you can only support one of the languages.





However, you could always program your own webserver software with your own command interpreter that could parse both languages. You could even invent your own language.


No comments:

Post a Comment