PHP vs CGI: Whats Better?

Discussion in 'Programming' started by Hades, Mar 18, 2007.

  1. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #21
    Probably the funniest line I have ever heard, if I could rep you (i did earlier today) I would rep you 10 times for that post.
     
    bobby9101, Mar 25, 2007 IP
  2. jgoddard

    jgoddard Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    CGI vs PHP is kind of irrelevant. CGI is the technical way that you interract with the web server from your browser, whether it is PHP or ASP or anything.

    CGI is the only way you can use other languages like C++ or PERL which was widely used before newer scripting languages like PHP and ASP came out.

    So the real answer is whether you like using PHP,PERL, C++, Java, ASP. If your favorite has to be used with a cgi-bin then you use CGI if not, then you don't need it.
     
    jgoddard, Mar 27, 2007 IP
  3. Artisan

    Artisan Well-Known Member

    Messages:
    638
    Likes Received:
    35
    Best Answers:
    1
    Trophy Points:
    128
    #23
    The interpreters for both PHP and PERL scripting languages may be used as (Apache) Web server modules which is faster, or as external (CGI) interpreters which is slower. There is also FastCGI technology which may be used by most scripting languages. PHP is most often used as (Apache) Web server module which would be faster without extra work, and PERL is most often used as external (CGI) interpreter which would be slower without extra work. But the best solution would be to use special proxy software, may be to enable internal Apache proxy feature would be enough for your purposes, but special multithreading proxy software would be much better because it would use less server memory and other system resources.
     
    Artisan, Mar 31, 2007 IP