Whats the difference between PHP and CGI?
Both PHP and CGI are interfaces, or gateways, to the server. Look at the code, it is similar. However, there are some major differences: • PHP is much more user-friendly. It was made specifically to be used in an HTML environment. Simply set the correct paths where you need to, upload the scripts and run them. • With CGI you have to set the correct paths, set server permissions, and hope and pray that you didn’t miss anything. PHP is also much faster than CGI, and puts less of a load on the server’s resources. • You’ll also find just about everything you want written in PHP for free whereas the movement in CGI is to charge for anything that even moderately works as it’s supposed to. • If you understand SSI (server side includes) then putting PHP into your pages will be easy. Simply write the HTML page as you normally would, insert a call to the PHP script, and give it a .php extension (rather than .html or .shtml). The server will that page, like it does with a SSI page, looking for PH