chandan Site Admin
Joined: 29 Feb 2004 Posts: 317 Location: India
|
Posted: Sun Feb 29, 2004 9:53 pm Post subject: |
|
|
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..  _________________ get free PHP scripts
 |
|