Python

Moderators: None (Apply to moderate this forum)
Number of threads: 473
Number of posts: 1172

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
cgi-for webpage Posted by beck on 3 Dec 2002 at 7:46 PM
ok. lost chixor here. I tried to do python cgi, one problem, i dont know how to make it work. Do you have to have a program to download to make it work or sumin? can you just use a shell that supports python to make it work?. This is what i did:

1. Wrote the script
2. Saved it in filename.py
3. ./filename.py no such file or directory. GRR!. i'm so pissed. >=(

can someone help me? ok thanks alot for all <hugs for someone who's gonna help>

ok bye :)
Report
Re: cgi-for webpage Posted by infidel on 4 Dec 2002 at 8:20 AM
: ok. lost chixor here. I tried to do python cgi, one problem, i dont know how to make it work. Do you have to have a program to download to make it work or sumin? can you just use a shell that supports python to make it work?. This is what i did:
:
: 1. Wrote the script
: 2. Saved it in filename.py
: 3. ./filename.py no such file or directory. GRR!. i'm so pissed. >=(
:
: can someone help me? ok thanks alot for all <hugs for someone who's gonna help>

I've never done cgi, but I imagine the webserver would need to be set up to support python scripts. Check with your admin.
Report
Re: cgi-for webpage Posted by infidel on 30 Dec 2002 at 4:09 PM
: ok. lost chixor here. I tried to do python cgi, one problem, i dont know how to make it work. Do you have to have a program to download to make it work or sumin? can you just use a shell that supports python to make it work?. This is what i did:
:
: 1. Wrote the script
: 2. Saved it in filename.py
: 3. ./filename.py no such file or directory. GRR!. i'm so pissed. >=(
:
: can someone help me? ok thanks alot for all <hugs for someone who's gonna help>
:
: ok bye :)

Ok, now I've done Python CGI so I might be able to help. You need to make sure that you put the script in a directory that the server knows is for CGI scripts. You also need to make sure the server knows how to run Python scripts. You also need to make sure the script is executable. But let's start with the basics, which http server are you using?

infidel




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.