difference between .cgi and .py

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • amaltasb@gmail.com

    #1

    difference between .cgi and .py

    Hi,
    I am new to python.. I have uploaded few scripts in my cgi-bin folder,
    some with extension .cgi and some with .py.

    What is the difference between the two extensions.. which one is more
    prefered, do it effects performance ??

    Thanks

  • Sybren Stuvel

    #2
    Re: difference between .cgi and .py

    amaltasb@gmail. com enlightened us with:[color=blue]
    > I am new to python.. I have uploaded few scripts in my cgi-bin
    > folder, some with extension .cgi and some with .py.
    >
    > What is the difference between the two extensions..[/color]

    None at all, except the way you write them.
    [color=blue]
    > which one is more prefered[/color]

    That depends. If you want to hide the fact that you're using Python,
    use .cgi. If you want to show that, use .py.
    [color=blue]
    > do it effects performance ??[/color]

    Nope.

    This is all assuming you're using the most widely used webserver
    Apache.

    Sybren
    --
    The problem with the world is stupidity. Not saying there should be a
    capital punishment for stupidity, but why don't we just take the
    safety labels off of everything and let the problem solve itself?
    Frank Zappa

    Comment

    • Erik Max Francis

      #3
      Re: difference between .cgi and .py

      amaltasb@gmail. com wrote:[color=blue]
      > Hi,
      > I am new to python.. I have uploaded few scripts in my cgi-bin folder,
      > some with extension .cgi and some with .py.[/color]

      Only how the Web server is configured.
      [color=blue]
      > What is the difference between the two extensions.. which one is more
      > prefered, do it effects performance ??[/color]

      Unless the server is fundamentally broken, it will make no difference
      whatsoever.

      --
      Erik Max Francis && max@alcyone.com && http://www.alcyone.com/max/
      San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
      Physics, as we know it, will be over in six months.
      -- Max Born (1928)

      Comment

      Working...