Jump to content

can i mix php and asp.net in one page


seco

Recommended Posts

You CAN NOT due to the fact that the extention is either PHP or ASP/ASPX.

 

that extension triggers a file on the server, which then parses the info in that file. so...  if you have a php extension, it will open the php parser. If you have a asp/aspx extension it will open the .net parser, and neither one know how to parse each others code... but their may be some sort of extension for php out there that can parse asp using the php parser.

You CAN NOT due to the fact that the extention is either PHP or ASP/ASPX.

 

that extension triggers a file on the server, which then parses the info in that file. so...  if you have a php extension, it will open the php parser. If you have a asp/aspx extension it will open the .net parser, and neither one know how to parse each others code... but their may be some sort of extension for php out there that can parse asp using the php parser.

thats what i was thinkming, and u can only get proper asp on windows and you can onlyu get proper php on unix, so you will have two dumbed down versions running on either windows or unix would be a shiddy chicken maybe it thoght it was ASPm because u used asp stule tags

The only way you can run php and asp is by having 2 separate files, and use a windows server, along with that you would have to have both php and asp parsers installed.

 

Then you would have to make sure that your web server is connecting to both parsers so it knows where they are when it needs to use them to convert either php or asp to html.

 

so... if all that works... then you could have files named like so:

 

contact.php

send_contact.asp

 

Where contact.php creates a contact form using php and send_contact.asp sends the email to the email address.  -- This will work (if codded correct without errors).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.