Home  >  Article  >  Backend Development  >  scheduledthreadpoolexecutor PHP VS ASP

scheduledthreadpoolexecutor PHP VS ASP

WBOY
WBOYOriginal
2016-07-29 08:33:381251browse

PHP versus ASP
Thu, Aug 17, 2000; by John Lim.
Preface:
Microsoft's ASP is a powerful dynamic WEB page technology. I have been using ASP for a year and used it to create many WEB sites. But now my company is thinking about turning to another INTERNET technology called PHP for future WEB site development.
The problem is that we are already accustomed to using ASP and like using it, why should we switch to PHP?
Open Source Movement
First of all, we realize that the open source movement gives us strong technical support and free code supply. For example: in ASP, uploading files, encrypting passwords, and sending emails all require the support of third-party commercial software and are charged; but in PHP, all this is free!
But that wasn’t enough to convince us to switch to PHP because we already invested a lot of time and money in these necessary business software tools.
INTERNET Programs and LINUX
I have a dream, I hope that in the future every program will be an INTERNET program. There is no need to buy software packages or install them. They are available on the Internet and are already installed. We only need to run the program in the browser, which does not require too much configuration.
Most web applications run on LINUX and PHP. They usually do not use ASP. There is a software called Chilisoft ASP, which can run ASP on LINUX, but it costs money. At the same time, it does not support the latest version of ASP. More importantly, it is good for creating high-performance ASP sites. None of the third-party DLLs can run on LINUX.
So, in order to realize our INTERNET software dream, we decided to find a better technology that is close to ASP to replace it!
ISAPI support
The PHP core engine being developed by the ZEND team includes an ISAPI engine.
ISAPI is a MICROSOFT INTERNET WEBSERVER API. Its application gives us programmers who are accustomed to developing programs under WINDOWS a shortcut to LINUX.
Technical Analysis
Everyone claims that their product is the fastest, that's not what I really care about---I only care about "fast enough", and for me, PHP is fast enough!
ASP supports multiple programming languages. This system makes the program inherently slow and takes up a lot of memory. Each language parsing is equivalent to a PHP compilation (that is, when ASP starts to parse a code, it is equivalent to starting multiple PHPs at the same time) , when ASP parses an ASP start tag (<%), it needs to jump out of the HTML parsing process and select another appropriate parsing process. When it parses an ASP end tag, it has to fall back to the HTML parsing process. .
At the same time, ZEND plans to release a compiler that can protect our source code, as well as various optimization technologies (Zend Cache and Optimizer), and even realize the good application of PHP under WINDOWS. Undoubtedly, PHP will in this regard Stronger than ASP!
A business decision to use PHP
Compared to PHP, there are many other open source options, such as perl, python/zope and jsp/tomact. For me, PHP is closest to ASP while also being easy to convert!
Perl: A language not suitable for large projects.
Python/Zope: A good language, but its system is not as close to ASP as PHP.
JSP/Tomcat: In my opinion, compared to scripting languages , type-safe, type-bound, type-checking Java is not easy to operate!
Code
We noticed that the code we developed with PHP is shorter than that developed with ASP. This is because in PHP, the HTTP GET and POST variables are automatically created as global variables, so that we don’t have to spend too much time. Analyze the ASP REQUEST object.
At the same time, PHP’s include() function is very good. We can conditionally include the code to make our code as streamlined as possible and easier to understand!
PHP has COOKIE and SESSION management functions similar to ASP.
Conclusion:
I am still using PHP and use the "$" symbol everywhere. It is very cool and it is also one of my favorite symbols! :)

The above introduces scheduledthreadpoolexecutor PHP VS ASP, including the content of scheduledthreadpoolexecutor. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn