Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^5: Add timestamp to helpdesk form

by poj (Vicar)
on Jul 04, 2014 at 17:01 UTC ( #1092319=note: print w/ replies, xml ) Need Help??

in reply to Re^4: Add timestamp to helpdesk form
in thread Add timestamp to helpdesk form

Add this line to your cgi and try again

use CGI::Carp 'fatalsToBrowser';
Remove or comment out when script is working.

Comment on Re^5: Add timestamp to helpdesk form
Download Code
Replies are listed 'Best First'.
Re^6: Add timestamp to helpdesk form
by csorrentini (Acolyte) on Jul 04, 2014 at 17:55 UTC
    Hmm that seems to have worked sort of but it gives me this error:

    Status: 500 Content-type: text/html Software error:

    Cannot open No such file or directory at helpdesk.cgi line 26.

    For help, please send mail to the webmaster (, giving this error message and the time and date of the error.

    I made that file and it does exist so not sure what it is talking about or if I'm doing something wrong?

      The database location $gbdata needs to be a filepath/filename not a URL
      my $gbdata="";

      Also the folder has to be writeable by the web server and normally cgi-bin folders are not for security reasons. If you are just learning/testing then try using the /tmp folder, same as the semaphone.

      my $gbdata = "/tmp/forms.txt";
        Yea thank you so much I literally figured it out right before coming back here. I just changed the name to forms.txt and it found it. THANK YOU THANK YOU THANK YOU!!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1092319]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2015-11-29 03:06 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls