Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats the difference between PHP and CGI?

CGI php
0
Posted

Whats the difference between PHP and CGI?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123