|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
CGI Halfwit needs help!
If I have a CGI script, how do I use it in a page?
For example I have on my webspace nph-proxy.cgi in /prx/cgi-bin/ Where do I put html files, etc? Please, spell it all out. |
|
#2
|
||||
|
||||
|
rythan,
welcome to the forums... it all depends on your server... i assume you access your page using: http://server-name/something.html so i'll assume your cgi scripts are running in: http://server-name/cgi-bin/script.cgi the actual directory structure on the server is always different... although a common one is: usr/me/public_html usr/me/cgi-bin I don't know if this helps out all... feel free to rephrase your question, and we'll try out best to answer accordingly... |
|
#3
|
|||
|
|||
|
Ok, take into account that I am completly green when it comes to this.
This is the dir that I'm sticking all the proxy files in: URL This is where I put the cgi file: URL If I just copy and paste a html file that works from somewhere, I run into this problem: URL I know that I've messed this up (I knew that to start with). So I'm just looking for some newbie friendly advice. EDIT: IE, I need to know what files I have to create, and where to point the inputs. |
|
#4
|
||||
|
||||
|
Is your server capable of running CGI scripts?
here's what happened for me... I went to http://members.optusnet.com.au/rythan/prx/ and was presented with a form... I poked around your HTML and noticed it was submitting to http://members.optusnet.com.au/ryth...n/nph-proxy.cgi (with some other stuff on the end of the URL)... well, i typed the address in (for nph-proxy.cgi) and my browser prompted me to download the file... I then downloaded your source file... This is a huge security risk... a couple ways to fix this... 1) make sure you're putting your CGI scripts in the proper directory (refer to your server admin for that)... 2) make sure you've set the proper permissions... CGI needs executable set for other... a common permission setting is 755, or rwxr-xr-x... I'm not sure why you've got the stuff appended to the end of the action url in your HTML form... You should simply put point to the CGI file (as i mentioned before) Try to fix the permissions before you do anything... |
|
#5
|
|||
|
|||
|
I just realised that my ISP doesn't support CGI scripts. Thanks for your help anyway though.
|
|
#6
|
||||
|
||||
|
that could also be a problem... =)
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > CGI Halfwit needs help! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|