Question: Is it possible to combine php & asp on a single page?


( Back )

Answer #1:

Yes if you poverty a PHP page to work you need the extension to be .php, the same goes for asp, .asp. I don't conceive you crapper consortium the two. Try splitting up the syntaxs or something. I've never proven to consortium them.

Answer #2:

I don't conceive you can put php and cobra codes in 1 page. A php tender has .php extension, likewise for .asp page.

Answer #3:

I'm pretty sure you can't because you requirement the .php spreading to run php or it module pass as text. You also need the .asp spreading with asp. Therefore I think it is not possible.

Answer #4:

Well, YES... php and asp crapper be combined in a single page. What you need to do player is
1. A ordinary extension either php or asp should be falsehood on the computer for both asp and php executions.

2. Tag specifications for asp and php must be assorted same <?phh ?> for php and <? ?> for asp..

Check drill for the both of these changes I am sure these are available both in IIS and Apache.
I hope It module work smoothly..
Then the discourse raises, which digit module be executed first. I think there is something on computer for the execution order.

Answer #5:

Yes it is!

It certainly entireness with CGI and PHP: a CGI playscript in any module I have tried it with Perl and Bash, but there's nothing language-dependent most the CGI trainer crapper generate PHP code, which module then be understood by the PHP module. I used this to provide a hurried and dirty fix to some legacy code; it bought me time to writing it properly.

You just hit to tell the PHP intermediator to impact everything as PHP disregarding of extension, and turn soured <% %> tags. The ASP interpreter already doesn't do <?php ?> tags. One or the other interpreter will wager the enter first; then pass on its munged version, with its production in place of its own primary tags but the another special tags intact, to the other.

To watch in what visit they get computerized which strength be essential , do something same create a file with digit country of script and see if it exists with the other one. If it doesn't, then the intermediator for the module in which you did the test must untruth upstream of the intermediator in whose language you created the file.

( Back )



** Powered by Yahoo Answers