1 / 5

CNIT 133 Interactive Web Pags – JavaScript and AJAX

CNIT 133 Interactive Web Pags – JavaScript and AJAX. CGI Samples. Agenda. My Web Site: http://fog.ccsf.edu/~hyip (download syllabus, class notes). Perl Unix Shell Script PHP. PERL. <form method="post" action="/cgi-bin/cgiwrap/USERID/perlform.pl">

neona
Télécharger la présentation

CNIT 133 Interactive Web Pags – JavaScript and AJAX

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CNIT 133 Interactive Web Pags –JavaScript and AJAX CGI Samples

  2. Agenda • My Web Site: http://fog.ccsf.edu/~hyip (download syllabus, class notes). • Perl • Unix Shell Script • PHP

  3. PERL <form method="post" action="/cgi-bin/cgiwrap/USERID/perlform.pl"> • Note: USERID is your hills userid and perlform.pl is the name of your cgi-script. CGIWrap is a gateway program that allows general users to use CGI scripts and HTML forms without compromising the security of the http server. Scripts are run with the permissions of the user who owns the script. In addition, several security checks are performed on the script, which will not be executed if any checks fail. CGIWrap is used via a URL in an HTML document. As distributed, cgiwrap is configured to run user scripts which are located in the ~/public_html/cgi-bin/ directory.

  4. Unix Shell Scripting <form method="get" action="/cgi-bin/cgiwrap/USERID/unixform.ksh"> • Note: USERID is your hills userid and unixform.ksh is the name of your cgi-script. CGIWrap is a gateway program that allows general users to use CGI scripts and HTML forms without compromising the security of the http server. Scripts are run with the permissions of the user who owns the script. In addition, several security checks are performed on the script, which will not be executed if any checks fail. CGIWrap is used via a URL in an HTML document. As distributed, cgiwrap is configured to run user scripts which are located in the ~/public_html/cgi-bin/ directory.

  5. PHP <form method="post" action="../phpform.php"> • You must create a php directory within public_html on the hills server and give this php directory a unix permission of 711. • Then, put all the php scripts inside this php directory. • Execute your php script as if it was located in your web server home directory (public_html).

More Related