PHP vs CGI: Whats Better?

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

  1. #1
    Hey guys, whats your opinion on proxy scripts? Do you like PHP or CGI more? What do you use on your site? Please don't post someting like "PHP Roxzors my soxors" or "CGI FTW" Give reasons to why you like either one.

    For example, i run my proxy at www.freesurfez.info and i use PHP because it is much faster. It also has many more options than CGI and uses less bandwidth. (or so im told)
     
    Hades, Mar 18, 2007 IP
  2. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Actually, CGIProxy uses less bandwidth than PHProxy, but is much more RAM/CPU intensive. There's the tradeoff. The new version of PHProxy can log onto MySpace, which was one of the big selling points of CGIProxy over PHProxy. Hope that answers some of your questions.
     
    MrX, Mar 18, 2007 IP
  3. Cal813

    Cal813 Active Member

    Messages:
    856
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    85
    #3
    I'd go with PHP, CGI is left in the olden days now.. move onto the newer PHP generation.
     
    Cal813, Mar 18, 2007 IP
  4. Cypherus

    Cypherus Peon

    Messages:
    1,551
    Likes Received:
    102
    Best Answers:
    0
    Trophy Points:
    0
    #4
    CGI is old, so I'de vote for PHP!
     
    Cypherus, Mar 19, 2007 IP
  5. forumrating

    forumrating Notable Member

    Messages:
    6,565
    Likes Received:
    347
    Best Answers:
    0
    Trophy Points:
    275
    #5
    php always, this should be asked in programming talk though,
    wrong place i guess
     
    forumrating, Mar 19, 2007 IP
    Nick_Mayhem likes this.
  6. Sohan

    Sohan Peon

    Messages:
    2,330
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The URL form in both versions of PHP Proxy is not stable, so I'd say CGI.
     
    Sohan, Mar 19, 2007 IP
  7. icebreaker

    icebreaker Peon

    Messages:
    349
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    my heart goes for PHP!!!
     
    icebreaker, Mar 19, 2007 IP
  8. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #8
    PHP scripts have less processing overheads than CGI
     
    agnivo007, Mar 19, 2007 IP
  9. itrana123

    itrana123 Peon

    Messages:
    177
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I vote for PHP caz its easy to learn and implement.
     
    itrana123, Mar 22, 2007 IP
  10. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,486
    Likes Received:
    338
    Best Answers:
    0
    Trophy Points:
    290
    #10
    PHP because then you can find more php programmer in the market too if you need to modify or anything in the script later on.
     
    Nick_Mayhem, Mar 22, 2007 IP
  11. koolasia

    koolasia Banned

    Messages:
    1,413
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #11
    php offcouse cgi is old very old now
     
    koolasia, Mar 22, 2007 IP
  12. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Now correct me if I'm wrong, but CGI is not a language in and of itself. It's the 'Common Gateway Interface' that is spoken by ANY language that is used to create dynamic / scripted web sites.

    Therefore, almost by definition, PHP speaks CGI itself.

    So when the OP mentions 'CGI', what exactly are they referring to? Perl? C applications?
     
    TwistMyArm, Mar 22, 2007 IP
  13. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #13
    He's referring to the popular PHProxy and CGIProxy scripts, respectively.
     
    MrX, Mar 22, 2007 IP
  14. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Thanks for the info, MrX. I just saw mention of 'PHP vs. CGI' for proxies and didn't really put two and two together :(

    Sorry guys...
     
    TwistMyArm, Mar 22, 2007 IP
  15. ewriter

    ewriter Banned

    Messages:
    590
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I think php is the better choice than the CGI
     
    ewriter, Mar 23, 2007 IP
  16. NickD

    NickD Well-Known Member

    Messages:
    262
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #16
    PHP gets the vote from me. My proxies all use PHP, CGI kills my CPU/Mem usage.
     
    NickD, Mar 23, 2007 IP
  17. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #17
    Pretty stupid thing to say, they both use the same amount of bandwidth because they both work in exactly the same way EXACTLY the same.

    So is the sun and you'd be royally fucked if that were to dissappear, not a good reason.

    When php runs on windows servers in runs as a cgi, you're totally right.

    Both scripts are crap, and don't really constitute a website, but anyway IMO php is generally better and more flexible than perl which is what you meant by cgi I think.
     
    krakjoe, Mar 25, 2007 IP
  18. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #18
    You're right, I'm not even sure why I said that. :confused:
     
    MrX, Mar 25, 2007 IP
  19. saadahmed007

    saadahmed007 Admínistratör

    Messages:
    5,272
    Likes Received:
    869
    Best Answers:
    0
    Trophy Points:
    380
    #19
    PHP proxy script is better imo anyway i use cybernaut's script :p which is better then cgi and php!
    Sad
     
    saadahmed007, Mar 25, 2007 IP
  20. Muhammad Haris

    Muhammad Haris Peon

    Messages:
    576
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #20
    Muhammad Haris, Mar 25, 2007 IP