|
|
|
|
|
by jermaustin1
328 days ago
|
|
I actually started my own PHP based on C# called CHP for fun. It runs atop whatever the current dotnet hosting service is (Kestrel?). It takes everything inside the "<? ?>" code blocks and inlines it into one big Main method, exposing a handful of shared public convenience methods (mostly around database access and easy cookie-based authentication), as well as the request and response objects. Each request is JITed, then the assembly is cached in memory for future requests to the same path, and it will recompile sources that are newer than the cached assembly. There is no routing other than dropping the .chp extension if you pass "-ne" into the arguments launching the server. It's not very far along, and is completely pointless other than for the sake of building my own web language thingy for the first time since 2003. |
|
This is how I've been building my .NET web apps for the last ~3 years. @+$ = PHP in C# as far as I'm concerned.