Forum Moderators: mack

Message Too Old, No Replies

Can I insert asp code in PHP page?

         

lecter

11:21 am on Oct 13, 2005 (gmt 0)

10+ Year Member



There is a PHP page, can I insert asp code in it?
thanx

darthgus

2:18 pm on Oct 13, 2005 (gmt 0)

10+ Year Member



I'm not an expert but...

you can put ASP code on a PHP page, but its not going to do anything because *.php page name will have it sent to the servers php module not it's asp module.

In short server side scripts need to be interprited by a module on the server before being sent to the end user as an html page. So the server module interprits the script (PHP, ASP or JSP) based on the page file extension. Hence you can only use one server side scripting language on any give page.

But like I say I'm no expert.