The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP vs CGI

Discussion in 'General Discussion' started by keat63, Dec 28, 2014.

  1. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Guys.

    One of my web sites uses HTML forms which post via PHP so customers to contact the sales team.
    I'm trying to determine which might be better for security.
    PHP or CGI. ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Are you referring to the scripting language itself or the PHP handler enabled on your server? If it's just the language, then it really depends on how it's coded.

    Thank you.
     
  3. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Was referring to the scripts to be honest.
    I have a few html contact type forms where a customer fills his details and hits send.
    This posts the email to us to act upon.

    I was trying to determine if cgi was maybe more secure than php.
    But if it comes down to how the script is written, then i guess it doesn't matter ??
     
  4. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Short answer - PHP if you know PHP. CGI - if you know perl/CGI-scripting.
    Question itself is quite general - any technology can be compromised and any technology can be used. ;)
     
Loading...

Share This Page