Question:
What are the main features of PHP and also what are the main functions it is capable of?
1970-01-01 00:00:00 UTC
What are the main features of PHP and also what are the main functions it is capable of?
Three answers:
2016-04-12 06:50:32 UTC
ASP.NET can only run on a Windows web server running IIS. PHP support many platforms. ASP.NET is actually more powerful in my opinion but the limited platform support makes it less popular with programmers. There are some major advantages to ASP.NET though. If you want to create both a web version and a desktop version of your software the only thing you have to recode is the forms, the controls in those forums, and the code that drives those controls has to be modified a little. Otherwise the code is almost 100% portable between desktop & web server.
Chris
2010-03-27 21:52:21 UTC
It does 'stuff' and you dont have to pay for it. End of.
Paultech
2010-03-27 12:05:42 UTC
Standard CGI, FastCGI and Apache module support - As a standard CGI program, PHP can be installed on any UNIX machine running any UNIX web server. With support for the new FastCGI standard, PHP can take advantage of the speed improvements gained through this mechanism. As an Apache module, PHP becomes an extremely powerful and lightning fast alternative to CGI programmimg.

Access Logging - With the access logging capabilities of PHP, users can maintain their own hit counting and logging. It does not use the system's central access log files in any way, and it provides real-time access monitoring. The Log Viewer Script provides a quick summary of the accesses to a set of pages owned by an individual user. In addition to that, the package can be configured to generate a footer on every page which shows access information. See the bottom of this page for an example of this.

Access Control - A built-in web-based configuration screen handles access control configuration. It is possible to create rules for all or some web pages owned by a certain person which place various restrictions on who can view these pages and how they will be viewed. Pages can be password protected, completely restricted, logging disabled and more based on the client's domain, browser, e-mail address or even the referring document.

PostgresSQL Support - Postgres is an advanced free RDBMS. PHP supports embedding PostgreSQL "SQL queries" directly in .html files.

RFC-1867 File Upload Support - File Upload is a new feature in Netscape 2.0. It lets users upload files to a web server. PHP provides the actual Mime decoding to make this work and also provides the additional framework to do something useful with the uploaded file once it has been received.

HTTP-based authentication control - PHP can be used to create customized HTTP-based authentication mechanisms for the Apache web server.

Variables, Arrays, Associative Arrays - PHP supports typed variables, arrays and even Perl-like associative arrays. These can all be passed from one web page to another using either GET or POST method forms.

Conditionals, While Loops - PHP supports a full-featured C-like scripting language. You can have if/then/elseif/else/endif conditions as well as while loops and switch/case statements to guide the logical flow of how the html page should be displayed.

Extended Regular Expressions - Regular expressions are heavily used for pattern matching, pattern substitutions and general string manipulation. PHP supports all common regular expression operations.

Raw HTTP Header Control - The ability to have web pages send customized raw HTTP headers based on some condition is essential for high-level web site design. A frequent use is to send a Location: URL header to redirect the calling client to some other URL. It can also be used to turn off cacheing or manipulate the last update header of pages.

On-the-fly GIF image creation - PHP has support for Thomas Boutell's GD image library which makes it possible to generate GIF images on the fly.

ISP "Safe Mode" support - PHP supports an unique "Safe Mode" which makes it safe to have multiple users run PHP scripts on the same server.

Many more new features are being added in newer releases of PHP. Visit the main web site at http://www.php.net

It's Free! - One final essential feature. The package is completely free. It is licensed under the GNU/GPL which allows you to use the software for any purpose, commercial or otherwise.



--------------------------------------------------------------------------------


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...