PDA

View Full Version : Strange Script Problems


Niss
07-31-2002, 05:47 PM
I'm using the built-in Counter script and a form that uses FormMail using the latest version 1.92 in my cgi-bin folder. When I access my website from home the Counter works correctly but the FormMail form reports that it cannot open something (I'm at work can't remember exactly what it says). From work however the FormMail form works correctly but the Counter comes back with "Could not write to counter file: /var/cpanel/Counters/niss.dat".
One more thing. The form using FormMail is in a frame. If I call the page that the form resides in outside the frame from home, it works correctly. (scratching head ?)
I'm really confused. Does it have something to do with security locks which determine who can call the cgi/pl scripts? Any ideas, please reply!
Thanks

Gforce
07-31-2002, 09:32 PM
Be sure you have set permissons on the cig script to execute by everyone. Also I have had to set the Dat files to write.

Good artical in the knowledge base:
http://www.hostrocket.info/article.php?id=92

Now the frames may be another issue but I doubt they cause an issue with the scripts. I worked with frames for while and finally dumped them in favor of shared boarders. This is especially true if you are interesed in good search engine listings.

Niss
07-31-2002, 10:00 PM
Thanks for the reply.
This gets even stranger, I set the permissions on FormMail.pl to 777, run the script and they are back to 644???
I'm now using the built in /cgi-sys/FormMail.cgi and it seems to work. I'll check it when I get to work tomorrow although it worked at work before. The reason I'm using my copy of FormMail is because "missing_fields_redirect" does not work correctly on the system FormMail.
I'm going to create a new counter and see what happens for that problem.