Lecture
PHP is a good replacement for CGI. Now CGI applications for the web are gradually being supplanted by PHP.
The reason for this is that PHP is designed specifically for web programming. Now you don’t need to write your own functions, for example, to parse a string, get the values of environment variables, etc. When using, for example C, you have to do it yourself.
In PHP, the parameters passed to the script will automatically become script variables, with which you can work as with ordinary variables. The same thing happens with server environment variables. It should be mentioned that PHP supports work with various databases (MySQL, PostgresSQL, Sybase, Informix, etc.). Support for all of these features is already available in PHP.
PHP is a complete programming language, the syntax of which is very similar to C, and the library of standard PHP functions is very large, everything a web programmer needs is always at hand.
Comments
To leave a comment
Running server side scripts using PHP as an example (LAMP)
Terms: Running server side scripts using PHP as an example (LAMP)