Parse php will then analyze asp.net

Is it possible that IIS will serve the .php page, but can also contain an asp.net control?

Like two-pass parsing, the first pass parses php, then the asp.net parser converts the controls.

A variable declared at each level does not need to be shared.

Is this possible or is it a sin?

+4
source share
3 answers

Ultra hack and untested ... but possible ....

Use output buffering and create a PHP script that generates your control. Then save the output to a file (with a unique name) and file_get_contents () to evaluate the ASPX file.

0
source

Regardless of whether ZenGeneral creative hack works, its a sin and really, just don't go there!

0
source

Perhaps, but not recommended. Choose one or the other. In the worst case scenario, you can use php curl to capture aspx or even (GRASP!) Iframes. This puts a lot of extra stress on the server because it needs to get the php file, parse it, then get the aspx file, parse it and then send it to php (or php is enough) and then displays the rest of php after the request. This will also reduce boot time.

0
source

All Articles