Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

CGI syntax checking

Options
  • 01-02-2006 10:48am
    #1
    Registered Users Posts: 16,731 ✭✭✭✭


    Im attempting to write a basic cgi to C - R - U - D with a database. I just want to check its syntax as its not working fully. at the console i get this error

    perl -c db_ClubCGI.cgi

    Too late for "-T" option at db_ClubCGI.cgi line 1.

    can anyone help??

    thanks


Comments

  • Registered Users Posts: 2,426 ✭✭✭ressem


    -T is the taint option used to mark input to the script as untrusted.

    When running from the command line, you need to run as
    perl -Tc db_ClubCGI.cgi


    I think that you might have to remove the -T from the first line of the cgi script. Not sure though.
    Should look like
    #!/usr/bin/perl

    When running from the web server, the -T must be added to the script line.


Advertisement