SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: PHP vs CGI

  1. #1
    SitePoint Member
    Join Date
    Feb 2001
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP vs CGI

    I have a couple of questions for everyone:

    - Is php harder on the server than perl?(Does it make the server do more?)

    - What are your opinions on perl vs php/mysql?

    - Does anyone know any articles or research information on this topic?
    <Edited by jason_v on 02-03-2001 at 07:26 PM>

  2. #2
    imagine no limitations exbabylon's Avatar
    Join Date
    Dec 2000
    Location
    Idaho, USA
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Personally I prefer PHP. It is fast to learn, and very user friendly.

    I like it because it has many pre-defined functions built in. Without having to learn different CGI Modules.

    Just personal preference I guess... and what you get used to. I'm not sure about server load...
    Blamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.

    Exbabylon- Professional Internet Services

  3. #3
    SitePoint Evangelist
    Join Date
    May 2000
    Location
    Canada
    Posts
    533
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you have CGI thought of wrong

    CGI is not a language. the language you are referring to is perl ...

    when perl is used as a CGI (it can be used as a module via mod_perl but usually isnt) it is more resource intensive than PHP (generally used as a module) ...

    PHP is easier to learn, (it does almost everything for you.. which i now thing is bad) ..
    cogito, ergo sum

  4. #4
    will code HTML for food Michel V's Avatar
    Join Date
    Sep 2000
    Location
    Corsica
    Posts
    552
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've since some friends hacking websites in a breeze, taking advantage of the relatively weak security in most CGIs. Some guestbook scripts, for example, are known to be like open doors to your server...
    The most classical example is NT's winCGI uploader.exe , aka a poor man's hack tool.

    Also, a good point in PHP is that it's embedded in HTML, while CGI embeds HTML.
    It's then far easier to make the overall layout of your page in HTML and then insert the PHP code snippets. Try doing that in CGI...
    [blogger: zengun] [blogware contributor: wordpress]


Bookmarks

Posting Permissions

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