Do they belong to you? Claim these comments.
Artem Gassan
Is this you? Claim Profile »
11 months ago
in Which one and Why? PHP or ASP.net on php programmer of bangladesh
If you plan to use ASP.NET. I prefer C#. Check out great product ANTS Profiler developed by RedGate. You can quickly identify performance bottlenecks and optimize your .NET application accordingly. Unfortunately it is not free product but worth to have.
11 months ago
in Which one and Why? PHP or ASP.net on php programmer of bangladesh
PHP is never compiled in the sense that an ASP.NET page is compiled. After the first run of an ASP.NET page, if you use in-page code for your .aspx files, the page is compiled and the code is literally machine code. If you use code-behind, then your page will always be compiled into the DLLs.
PHP compilations involve the PHP engine changing it to the executeable form of the page (similar to how Java uses byte code in its "compiled" state). Furthermore, the only way to then achieve similar speed to ASP.NET is to CACHE the "compiled" version of the PHP scripts. This is how the Zend Accelerator works.
At no point does the PHP code ever become machine level code.
As to running PHP vs ASP.NET on a Linux server, there is Mono (go-mono.com) so that you can run ASP.NET on a Linux server, but maybe due to a poor implementation it has speed problems? I don't know, I have never used .NET on a Linux machine. My first guess is that ASP.NET is still faster on Linux than PHP.
Scripts cannot beat machine code because at the end of the day, you're running another program in order to execute the script, while the machine code runs as is.
Please take a look at this article. Very funny:
http://compsci.ca/blog/if-a-programming-languag...
PHP compilations involve the PHP engine changing it to the executeable form of the page (similar to how Java uses byte code in its "compiled" state). Furthermore, the only way to then achieve similar speed to ASP.NET is to CACHE the "compiled" version of the PHP scripts. This is how the Zend Accelerator works.
At no point does the PHP code ever become machine level code.
As to running PHP vs ASP.NET on a Linux server, there is Mono (go-mono.com) so that you can run ASP.NET on a Linux server, but maybe due to a poor implementation it has speed problems? I don't know, I have never used .NET on a Linux machine. My first guess is that ASP.NET is still faster on Linux than PHP.
Scripts cannot beat machine code because at the end of the day, you're running another program in order to execute the script, while the machine code runs as is.
Please take a look at this article. Very funny:
http://compsci.ca/blog/if-a-programming-languag...