Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

CGI syntax checking

  • 01-02-2006 10:48AM
    #1
    Registered Users, Registered Users 2, Paid Member Posts: 17,188 ✭✭✭✭


    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, Registered Users 2, Paid Member Posts: 2,427 ✭✭✭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