Free Web Hosting PHP/mySQL
GlobalWeb.com.ru Forum Index GlobalWeb.com.ru
Free Web Hosting :: Commercial Web Hosting :: PHP/mySQL :: CGI/Perl
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sorry for the giberish

 
Post new topic   Reply to topic    GlobalWeb.com.ru Forum Index -> PHP
Author Message
gkytyb
Guest





PostPosted: Sun Feb 29, 2004 7:10 pm    Post subject: Sorry for the giberish Reply with quote

Whats the difference between PHP and CGI?
Back to top
chandan
Site Admin


Joined: 29 Feb 2004
Posts: 317
Location: India

PostPosted: Sun Feb 29, 2004 9:53 pm    Post subject: Reply with quote

CGI-

CGI stands for Common Gateway Interface. it's a simple protocol that can be used to communicate between web forms and your program, a method by which a web server can obtain data from (or send data to) databases, documents, and other programs, and present that data to viewers via the web. CGI is not a language, it is a program intended to be run on the web . it can be written in any language that can read STDIN, write to STDOUT, and read environment variables, i.e. virtually any programming language, including C, Perl, or even shell scripting. but perl is the most frequently used language.

here's the typical sequence of steps for a CGI script:

1>read the user's form input.
2>do what you want with the data.
3>write the HTML response to STDOUT.

now for PHP-


PHP stands for Hypertext Preprocessor. it is a server-side scripting language, like ASP etc. PHP scripts are executed on the server and it supports many databases inluding MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc . it can run on different platforms like, Windows, Linux, Unix, etc and is compatible with almost all servers used today (Apache, IIS, etc.) . a PHP script can be placed anywhere in an HTML document. because PHP is embedded within tags, the author can jump between HTML and PHP (similar to ASP and Cold Fusion) instead of having to rely on heavy amounts of code to output HTML. and, PHP is executed on the server, so, the client cannot view the PHP code. PHP can perform any task that any CGI program can do, but its strength lies in its compatibility with many types of databases. also, PHP can talk across networks using IMAP, SNMP, NNTP, POP3, or HTTP.


i guess that shud do.. Smile
_________________
get free PHP scripts

Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    GlobalWeb.com.ru Forum Index -> PHP All times are GMT
Page 1 of 1

 


Free Web Hosting, Commercial Web Hosting, PHP/mySQL Copyright © 2009
Free Scripts Directory | Free Software Downloads | Newsgroups Directory | Optel.net | Mirroraty | Cruised.net | Hardware Keylogger