Thread: CGI vs. PHP
View Single Post
Old Dec 18th, 2005, 1:18 PM   #4
Darkhack
Hobbyist Programmer
 
Darkhack's Avatar
 
Join Date: Dec 2005
Location: Kansas City
Posts: 105
Rep Power: 3 Darkhack is on a distinguished road
Send a message via AIM to Darkhack
Quote:
Originally Posted by commodore
I'm not stupid. CGI (common gateway interface) is a way of programming web sites. It works like this: someone visits /index.cgi and an app is executed on the server which output is displayed in an html file.

I wanted to know why should I use PHP to make websites not some scripting language or anything. I have seen a cms made in python for example. Why do people make sites in PHP not in some "regular" programming languages?
No one said you were stupid, but your ideas about CGI are inaccurate. You are correct about what CGI is, but I don't think you understand how php fits into the picture. PHP IS a CGI langauge. CGI is just a type of programming language. Other categories include compiled or interpreted, and object oriented or procedural . Also php is a regular scripting language and can do most things that python can do in terms of website scripting.

You got the right idea. Just know that php isn't any different than python or other CGI languages.
Darkhack is offline   Reply With Quote