cgi-for webpage - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

cgi-for webpage

beckbeck Posts: 3Member
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

ok bye :)

Comments

  • infidelinfidel Posts: 2,900Member
    : 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

    I've never done cgi, but I imagine the webserver would need to be set up to support python scripts. Check with your admin.
  • infidelinfidel Posts: 2,900Member
    : 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
    :
    : 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?

    [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]

Sign In or Register to comment.