Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: PHP or CGI?

  1. #1
    New Coder
    Join Date
    Dec 2007
    Thanked 0 Times in 0 Posts

    PHP or CGI?

    Hi there, after doing some research, I realised to create a dynamic page I can use CGI or PHP, for the purposes I need the site to do. This website is going to have a lot of myspace like features to it and I realised that they use CGI on their website by looking at their addresses, but I was told that PHP would be used in my case. I am slightly confused as to which one should I be learning (or both of them), what the differences are between the two and in what kind of situations do they differ in their usage.


  • #2
    Master Coder
    Join Date
    Jun 2003
    Cottage Grove, Minnesota
    Thanked 1,096 Times in 1,087 Posts
    PHP along with MySQL offers the most support, assistance, and information
    available on the internet. Although CGI (Which is not a programming language ...
    the real programming language they mean is "Perl"), is very powerful, PHP has
    proven to be the more popular and easiest to use.

    Perl is best for high power business applications. Perl's file and data processing
    abilities and speed make it the best for UNIX/Linux server applications. Perl files
    are stored in your "cgi-bin" directory, that's why it's commonly called CGI. CGI is a
    Gateway Interface ... a data transfer protocol, not a language.

    PHP on the other hand, was designed more for actual web page scripting, and for
    creating dynamic pages on-the-fly. PHP became a great match with MySQL, and
    there's a ton of documentation and support, making it the best choice for what
    you want to do.

    Learn PHP and MySQL, but know that Perl is a great programming language and you'll
    find many similarities. If you learn ANY programming language (BASIC, C++, PHP, Perl),
    you'll be putting yourself in a good spot for website development. It's more about the
    concepts ... variables, file functions, commands, operations of programming than the
    language itself.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts