Jump to content

Recommended Posts

So you're saying that .php will parse .asp code?

 

yes it is possible... in your httpd.conf or .htaccess add this "AddType application/x-httpd-php .asp"

 

then... in any .asp pages... you should be able to use php :-)

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).

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.