| | #1 (permalink) |
| First Prime of ASciFi Join Date: Jul 2000
Posts: 1,597
| I'm trying to work with a very simple little cgi script and I've decided I just don't know what is happening with it. If there is someone out there who is proficient at cgi, could you please help me? Thanks, |
| |
| | #4 (permalink) |
| System Lord of ASciFi.com Join Date: Jul 2000
Posts: 2,133
| I should be able to sort it out, send it over and i will have a look.. you set the paths correctly? if you have it on thehocket.com then you need /usr/bin/perl/ as path to perl /usr/sbin/sendmail/ as path to sendmail and /home/thehocket/www/cgi-bin as path to cgi-bin. make sure you chmod to 755 or it won't work. |
| |
| | #5 (permalink) |
| First Prime of ASciFi Join Date: Jul 2000
Posts: 1,597
| I didn't put it on Hocket because I wasn't sure if it would work there, but I might do that and then you can take a look at it there - couldn't you? The problem is with the freakin' paths. Every server I've been on has different ways to do them and I'm continually confused. ![]() It's a simple little cgi that writes the user input from a form to a viewable text file on the site. I can get all the pages to come up correctly, but it's not writing. All the permissions are set right too. Cheers, |
| |
| | #6 (permalink) |
| First Prime of ASciFi Join Date: Jul 2000
Posts: 1,597
| Guess what? I got it to work on the hocket. Now all I need to do is get the voting program to work and I'm all set. If you want to see what I'm working on, it's at http://www.thehocket.com/andromeda Cheers, |
| |
| | #7 (permalink) |
| System Lord of ASciFi.com Join Date: Jul 2000
Posts: 2,133
| Do you need me to still take a look at the script then (the one you emailed)? If it is not writing to a file then that is a permission error. One thing, sometimes servers don't like writing to files that are kept inside the cgi-bin so you may need to move the file that is to be written to outside the cgi-bin and then chmod it to 777 (essential for a file to be written to) then it should work ok. Any problems ask away. |
| |
| | #8 (permalink) | |
| First Prime of ASciFi Join Date: Jul 2000
Posts: 1,597
| Quote:
![]() Cheers, | |
| |
| | #9 (permalink) |
| System Lord of ASciFi.com Join Date: Jul 2000
Posts: 2,133
| hehe, they have a habbit of doing that. When i looked at your andromeda page there was a problem though, you were calling the script that was not in the cgi-bin. This will NOT work. The script MUST be in the cgi bin. It is the data files that it writes to that may or may not need to be inside the cgi bin. If the poll program does not let you change where the datafiles go then maybe get a different one. I will have a look but my problem is i am using my laptop that has none of my ftp, etc... programs on it and my normaly computer won't connect to the university ethernet for some reason. Bare with me though; |
| |
| | #10 (permalink) |
| First Prime of ASciFi Join Date: Jul 2000
Posts: 1,597
| The script on the page isn't the one I'm using. {G} I thought about using that one, but can't find all the pieces parts to it. I haven't changed the code yet on the page is all. The script I need checked is in the email I sent you. If you need me to send it again, I will. I don't want to post it here because it's password protected and I don't want to ... well you know. ![]() Cheers, |
| |
| | #13 (permalink) |
| System Lord of ASciFi.com Join Date: Jul 2000
Posts: 2,133
| lol ![]() can i put a little hold on it, check out the thread about the andromeda site. We will have to work out how we are going to fit it in. I need to get the domain dns sorted out, will do that.. agghh.. so much! |
| |
![]() |
| Thread Tools | |
| Rate This Thread | |
| |