difference between .cgi and .py

A

amaltasb

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
 
S

Sybren Stuvel

(e-mail address removed) enlightened us with:
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..

None at all, except the way you write them.
which one is more prefered

That depends. If you want to hide the fact that you're using Python,
use .cgi. If you want to show that, use .py.
do it effects performance ??

Nope.

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

Sybren
 
E

Erik Max Francis

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

Only how the Web server is configured.
What is the difference between the two extensions.. which one is more
prefered, do it effects performance ??

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top