College of Engineering
My Account
Contact DECS
DECS
Home
Services
Labs & Equipment
Software
Projects
Applications
Systems
Labs
Websites
Help & Support
FAQ & HowTos
Forms
About DECS
CGI Form
Home
›
forms
› CGI Form
Website name or title:
*
The main problem regarding CGI's is:
*
The non-conventional nature of CGI programming
Difficulty of perl or other programming languages
Security
Perl being an interpreted language, not a compiled one
To minimize this problem while coding in the PERL language, I will use this perl interpreter to run my scripts:
*
/opt/bin/perl -T
/opt/bin/perl
I will use someone else's scripts only if:
*
It has been tested and trusted
I understand it
I find it and it suits my purpose
I will use Server Side Includes :
*
In moderation, because it puts an extra load on the server
As much as I like, since it adds so much functionality to my page
Which of these should be used regarding echoing variables in your scripts, and why?:
*
echo QUERY_STRING = '$QUERY_STRING'
echo QUERY_STRING = "$QUERY_STRING"
echo QUERY_STRING = $QUERY_STRING
Which php function is useful for preventing a sql injection?:
*
mysql_real_escape_string()
escape_string()
escape()
scrup_input()
Which php function is useful for preventing an xss attack?:
*
escape()
html_escape()
escape_string()
htmlentities()
How would you sanitize string input coming from a form? :
*
$var = filter_var($form_var, FILTER_SANITIZE_STRING);
$var = filter_sanitize_string($form_var);
$var = filter_var($form_var, FILTER_UNSAFE_RAW);
$var = filter_unsafe_raw($form_var);
email:
*
egr username:
*