<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by terminator4</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Fri, 09 Oct 2026 09:18:24 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>who know CGI (common gateway interface)</title>
            <link>http://forum.lowyat.net/topic/470178</link>
            <description>&lt;span style='font-size:14pt;line-height:100%'&gt;did here got any guys expert on CGI script?? who can help me do tis question  who can do it for me?? i really no idea bout it, tis question is my GF assignment, need to due on 11th of june 2007, left 4 days only~~~~ did any pro programmer can help me? she done the question 1 already juz dunno how to do the question 2, who can help me do it?? thanks alots  the question is &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Added on June 7, 2007, 10:06 pmQuestion 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You have been awarded the contract to create the web site for an international conference. The conference is entitled &lt;br /&gt;&lt;br /&gt;The Twenty-Second International Conference on Australasian Bats. &lt;br /&gt;&lt;br /&gt;The conference is to be held in Port Moresby, Papua New Guinea from March 17 to 21, 2008. This conference is expected to attract experts from around the world in Biology, Infectious Diseases, Conservation, Bio-diversity etc. The conference organisers want their site in four parts: &lt;br /&gt;A program page that lists the sessions over the five days of the conference. This page will also list the invited speakers of the conference providing a picture of each speaker and the title of the talk they will be giving. There should be a session timetable. &lt;br /&gt;An accomodation page. A page listing the suggested hotels for the conference attendees to stay at while at the conference. Prices should be quoted on this page. &lt;br /&gt;A tourist page outlining all the things that a visitor to the area can do while not at the conference. &lt;br /&gt;The site-map section. Normally this would be a simplified list of the main sections of any site - an extended table of contents as an aid to navigation. &lt;br /&gt;For these assignments the site-map section will be used by the student as a site-map for the marker - pointing the marker to the main pages where required elements may be found.&lt;br /&gt;&lt;br /&gt;Assignment One&lt;br /&gt;The first assignment is to set up the basic structure of the web site. Assignment Two will add extra features to the basic structure of Assignment One. Please keep in mind the requirements of Assignment Two when designing your site for Assignment One. &lt;br /&gt;Design&lt;br /&gt;The basic design of the site should be the following: &lt;br /&gt;There should be an entrance page to the site. This should be simple but convey the purpose of the site clearly. &lt;br /&gt;From the entrance or welcome page there should be links to the major sections of the site. &lt;br /&gt;The conference program section. &lt;br /&gt;The accomodation section. &lt;br /&gt;The tourist section. &lt;br /&gt;The site-map section to be used by the student to document the solution for the marker. Required elements must appear in the other sections of the site as well as being documented in this section. &lt;br /&gt;The design of individual pages must be consistent across the site. This means ALL pages (the site-map section as well). &lt;br /&gt;Required elements must be included in the site in a consistent way and be relevant to the page they are in.&lt;br /&gt;&lt;br /&gt;Required Tasks&lt;br /&gt;In the directory ~/CSC2406/html/ass1 create four directories that will contain the documents and images etc. for the four main sections of the site: &lt;br /&gt;program&lt;br /&gt;&lt;br /&gt;This directory will contain the pages, images, scripts etc. pertaining to the conference program. &lt;br /&gt;accomodation&lt;br /&gt;&lt;br /&gt;This directory will contain the pages, images, scripts etc. pertaining to accomodation at the conference. &lt;br /&gt;tourist&lt;br /&gt;&lt;br /&gt;This directory will contain the pages, images, scripts etc. pertaining to the tourist information. &lt;br /&gt;sitemap&lt;br /&gt;&lt;br /&gt;This directory will be used by you to document your solutions to the assignments. &lt;br /&gt;Your site should contain the following elements &lt;br /&gt;Images&lt;br /&gt;&lt;br /&gt;Your site must contain each of the following- &lt;br /&gt;A conference logo which should appear on every page. The image for the logo should have a transparent background. &lt;br /&gt;A Client Side or Server Side image map. &lt;br /&gt;An Animated GIF. &lt;br /&gt;Cascading Style Sheets&lt;br /&gt;&lt;br /&gt;All font changes, all text colors, background colors, H1 to H6 elements, BODY element etc. should be modified using only style sheets. &lt;br /&gt;This means that HTML elements should be modified using style sheets where possible, not by HTML attributes. For example - do not use the attributes of the BODY element to change background color etc. but style commands.&lt;br /&gt;&lt;br /&gt;The site should be readable and navigable with style sheets turned off.&lt;br /&gt;&lt;br /&gt;Page Layout&lt;br /&gt;&lt;br /&gt;Use either CSS2 or tables to format each page of the site. (Those that choose to use CSS2 commands to format each page will be given bonus marks as CSS2 is harder to use and will require more effort. Also browsers are not consistent in their implementation of CSS2 commands. So you must use either the Mozilla or Firefox browsers to test your site as these will be the browsers used to mark your assignment.) &lt;br /&gt;Style Guide&lt;br /&gt;&lt;br /&gt;When designing the site and individual pages follow the suggestions outlined in the style guide module in the study book and the style guide in the resources directory. &lt;br /&gt;Create a welcoming page for the site (in the top level assignment directory). This welcoming page should be simple but eye catching. With basic information about the purpose of the site. &lt;br /&gt;Create at least two pages for each of the other main sections of the site: &lt;br /&gt;Program section &lt;br /&gt;Accomodation Section &lt;br /&gt;Tourist Section &lt;br /&gt;Either write all the pages as XHTML or use the program tidy to convert your HTML into XHTML. This will require reading section 6.10.1 of the Study Book. &lt;br /&gt;Create a Site-map page which will contain the following: &lt;br /&gt;Links to the pages containing the required items in the main part of the site. &lt;br /&gt;Descriptions, with examples from your site - of all the Required images and Image maps. &lt;br /&gt;Explanations how you made your images. &lt;br /&gt;All the component images of the animated gif displayed. A description how you created the component images, and how you created the final animated image. &lt;br /&gt;A description of the rationale for your page design - That is, using the Style Guide Module and the style guide in the resources directory - explain your design. This should be done in point form - each point a specific design decision. &lt;br /&gt;The Site-map directory is to be used to document you solution to the assignments. All the required elements must be in the main part of the site not just on the site-map page. The site-map page must also conform to the overall design criterion you are using for the main site.&lt;br /&gt;&lt;br /&gt;Marking Scheme:&lt;br /&gt;Transparent Logo 6 &lt;br /&gt;Animated Gif 6 &lt;br /&gt;Image Map 7 &lt;br /&gt;Cascading Style Sheets 12 &lt;br /&gt;Used Tables for Formatting 5 &lt;br /&gt;Used CSS2 for Formatting 10 &lt;br /&gt;Used XHTML 4 &lt;br /&gt;Overall Appearence 5 &lt;br /&gt;All links work 5 &lt;br /&gt;Maximum (out of 50 with tables) 50 &lt;br /&gt;Maximum (out of 50 with CSS2) 55 &lt;br /&gt;&lt;br /&gt;Notes:&lt;br /&gt;Your assignment is supposed to look like a real site - not an assignment (Except for the Site-Map section.) &lt;br /&gt;Use your imagination. Don&amp;#39;t be frightened to make information up. The veracity of the information on the site will not be checked. Use the Internet. &lt;br /&gt;Make certain it is clear from perusing your site where all the required elements are. If it is not clear the marker may miss required elements and mark you down accordingly. Have links on the site-map page to the required element in the main part of the site. The required elements Must appear in the main part of the assignment not just in the site-map section. &lt;br /&gt;The &amp;quot;welcome&amp;quot; page for your assignment, that is the first page to be viewed should be called index.html or index.htm. This ensures when marking the assignments they all have the same entry point. These are also the default files the server looks for in a directory when a URL points to a directory. &lt;br /&gt;All your assignment documents should be contained in ONE directory tree. The top directory ass1 has been made for this purpose. &lt;br /&gt;All links should be relative - that is they should NOT contain &lt;br /&gt;A machine name, or &lt;br /&gt;start with a slash. &lt;br /&gt;To ensure that all links on your pages are relative try the following -&lt;br /&gt;&lt;br /&gt;Start your web browser and load the assignment top page using the Open Page pull down menu item. This will load the page directly off disk into the browser. Now check that no links are broken. &lt;br /&gt;Do not have your server running when you do this.&lt;br /&gt;&lt;br /&gt;Relative links should NOT contain a server name or start with a / (slash)&amp;#33;&lt;br /&gt;&lt;br /&gt;Please experiment with the tar command to ensure you have used it correctly. &lt;br /&gt;It is your responsibility to ensure that the tar file you submit is correct.&lt;br /&gt;&lt;br /&gt;If you use FTP to transfer the TAR file between machines, make sure that the transfer is done in BINARY mode. &lt;br /&gt;This assignment must work on a machine running Debian GNU/Linux using the supplied copy of Mozilla or Firefox as the browser. All URLs must be relative.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Added on June 7, 2007, 10:07 pmquestion 2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Assignment One, you set up the basic design of the site, now you must expand the functionality of the site by adding server side scripts. &lt;br /&gt;Design&lt;br /&gt;All new pages created for this assignment must conform to the design criterion established for Assignment One. &lt;br /&gt;All the pages you created in Assignment One should also be present in Assignment Two not just the new pages or modified pages.&lt;br /&gt;&lt;br /&gt;Tasks&lt;br /&gt;Conference Registration Page&lt;br /&gt;Create a directory called registration. &lt;br /&gt;Create a static XHTML page for conference registration and place the page in the registration directory. &lt;br /&gt;Add a link to the top page of the site to this page. &lt;br /&gt;The registration page is a form that asks the client for his or her registration details. Information required for conference registration will be: &lt;br /&gt;Full Name &lt;br /&gt;Contact Email Address &lt;br /&gt;Name of the Institution &lt;br /&gt;Credit Card type &lt;br /&gt;Credit Card Number &lt;br /&gt;Expiry Date of Credit Card &lt;br /&gt;Use the appropriate XHTML INPUT types. The TEXT input type is not the most appropriate type in all cases. &lt;br /&gt;The POST method should be used to send the data to the script. &lt;br /&gt;Input error checking must be done by the CGI script. (But not the validity of the Credit Card number) &lt;br /&gt;One CGI script will be written that will take the information from the page and output it to a well formed XML text file in the subdirectory registration/payment. There should be one registration per XML file. &lt;br /&gt;&lt;br /&gt;The XML registration files in registration/payment should use the contact email address as the filename (Assume that every person registering will possess a unique email address.) &lt;br /&gt;&lt;br /&gt;A simple way to test if a file already exists is to use &lt;br /&gt;fptr = fopen(filename,&amp;quot;r&amp;quot;);&lt;br /&gt;if( fptr &amp;#33;= NULL ) {&lt;br /&gt;fclose(fptr);&lt;br /&gt;...the file exists&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;A DTD file should be supplied in the registration/payment directory that can be used to validate the payment files. &lt;br /&gt;The XML files in the registration/payment directory should be password protected from download. The username/password pair that should be used to protect the files should be `payments/1234&amp;#39;. For this assignment place the password file in the registration directory. This file should also be protected from accidental or malicious download by anyone by the appropriate configuration directives. &lt;br /&gt;If the registration information is accepted a polite message should be returned to the client telling them they have successfully registered. &lt;br /&gt;If the registration is not accepted an informative error message must be supplied explaining why it has not been accepted. &lt;br /&gt;Paper title and abstract submission page.&lt;br /&gt;A page to list all the papers to be presented or submit a title and abstract of a paper to be presented. &lt;br /&gt;Create a directory called papers. All files for this section are to be placed in this directory. &lt;br /&gt;Create one CGI script to dynamically display papers or accept papers. &lt;br /&gt;Add a link to the top page of the site to this script. &lt;br /&gt;Everything following is to be dynamically created by one CGI script. &lt;br /&gt;Without input the script should display a default page that offers two choices: &lt;br /&gt;To list all the titles and authors of all the submitted papers to date and &lt;br /&gt;a form for paper and abstract submission. &lt;br /&gt;Submission Option on the default page: &lt;br /&gt;The form on the default submission page should have three fields &lt;br /&gt;Field to enter the names of all of the authors. &lt;br /&gt;Field to enter the name of the principal author. This is the person who will be presenting the paper at the conference. The principal author&amp;#39;s name should be one of the names in the first field. &lt;br /&gt;Field to enter the contact email address of the principal author. &lt;br /&gt;Field to enter the title of the paper. &lt;br /&gt;A text-area to enter the abstract of the paper. &lt;br /&gt;The POST method should be used to send the data to the script. &lt;br /&gt;The CGI script will accept the form information and write the abstract of the paper to a text file. One file - one abstract. The name of the file must be unique (See Notes). The remaining information will be appended to a text file. Each line of the file will contain the principal author, the authors, the title and the name of the file containing the abstract. &lt;br /&gt;Only people who have been registered for the conference should be allowed to present a paper. If the principal author has not registered for the conference the script should not accept the submission, return a polite message and a link to the registration page. &lt;br /&gt;&lt;br /&gt;Use the email address of the principal author to check if a registration/payment file exists with that name. &lt;br /&gt;&lt;br /&gt;A simple way to test if a file already exists is to use &lt;br /&gt;fptr = fopen(filename,&amp;quot;r&amp;quot;);&lt;br /&gt;if( fptr &amp;#33;= NULL ) {&lt;br /&gt;fclose(fptr);&lt;br /&gt;...the file exists&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Input error checking must be done by the CGI script. &lt;br /&gt;List Option on the default submission page: &lt;br /&gt;When this option is selected from the default page the script should list the authors and titles of all the accepted papers. &lt;br /&gt;Each listed paper should have a link to the abstract of that paper. &lt;br /&gt;If the abstract link is selected then the script will display ALL the information about that one paper. That is - the principal author, the authors, the title and the abstract. &lt;br /&gt;The GET method should be used to tell the script which paper to display. &lt;br /&gt;Marking Scheme:&lt;br /&gt;Registration Section 25 &lt;br /&gt;Submission Section 45 &lt;br /&gt;Design of new pages 10 &lt;br /&gt;Error Checking of Scripts 20 &lt;br /&gt;Total 100 &lt;br /&gt;&lt;br /&gt;Notes:&lt;br /&gt;Reread the Notes from Assignment One. &lt;br /&gt;All new pages created for this assignment, and that includes dynamic pages created by CGI scripts must be in the same design style as all the pages in Assignment One &lt;br /&gt;CGI scripts are to be written in C. No other language will be accepted. The reason for this is that we can only support one language and all students should have had experience with C. &lt;br /&gt;The libCGI library in C is supplied to simplify the task of writing scripts.&lt;br /&gt;&lt;br /&gt;Scripts should be well commented.&lt;br /&gt;&lt;br /&gt;Study the example scripts supplied with the server and those that can be found in the practicals. &lt;br /&gt;A simple way to test if a file already exists is to use &lt;br /&gt;fptr = fopen(filename,&amp;quot;r&amp;quot;);&lt;br /&gt;if( fptr &amp;#33;= NULL ) {&lt;br /&gt;fclose(fptr);&lt;br /&gt;...the file exists&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;A simple way to create a unique filename is to use the process identification number of the running script. For example &lt;br /&gt;#include &amp;lt;unistd.h&amp;gt;&lt;br /&gt;char filename[6];&lt;br /&gt;sprintf(filename,&amp;quot;%d&amp;quot;,(int)getpid());&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please note that for a busy site this is NOT the best way of constructing a unique filename - the process id can recycle easily within a day.&lt;br /&gt;&lt;br /&gt;This assignment must work on a Debian GNU/Linux machine running Mozilla or Firefox. All URLs must be relative. All CGI scripts must be handed in as executables and as source. CGI script executables should have filenames ending in .cgi so that they can run in any directory. &lt;br /&gt;Do Not use global configuration directives as the directives will Not be submitted with the assignment. Directory configuration files should be used in the directories that require them. &lt;br /&gt;Some of the file configuration directives in directive configuration files must be absolute. This is the only place where absolute pathnames should ever be used. &lt;br /&gt;The password file must be in the document tree so that it is submitted with your assignment. &lt;br /&gt;Please note that on a commercial site a password file would NEVER be placed in the document tree.&lt;br /&gt;&lt;br /&gt;</description>
            <author>terminator4</author>
            <category>Codemasters</category>
            <pubDate>Sat, 09 Jun 2007 20:43:16 +0800</pubDate>
        </item>
        <item>
            <title>who know CGI (common gateway interface)</title>
            <link>http://forum.lowyat.net/topic/469278</link>
            <description>&lt;span style='font-size:14pt;line-height:100%'&gt;did here got any guys expert on CGI script?? who can help me do tis question  &lt;!--emo&amp;:cry:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/cry.gif' border='0' style='vertical-align:middle' alt='cry.gif' /&gt;&lt;!--endemo--&gt;  who can do it for me?? i really no idea bout it, tis question is my GF assignment, need to due on 11th of june 2007, left 4 days only~~~~ did any pro programmer can help me? she done the question 1 already juz dunno how to do the question 2, who can help me do it?? thanks alots  &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt; the question is &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[addedon]June 7, 2007, 10:06 pm[/addedon]Question 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You have been awarded the contract to create the web site for an international conference. The conference is entitled &lt;br /&gt;&lt;br /&gt;The Twenty-Second International Conference on Australasian Bats. &lt;br /&gt;&lt;br /&gt;The conference is to be held in Port Moresby, Papua New Guinea from March 17 to 21, 2008. This conference is expected to attract experts from around the world in Biology, Infectious Diseases, Conservation, Bio-diversity etc. The conference organisers want their site in four parts: &lt;br /&gt;A program page that lists the sessions over the five days of the conference. This page will also list the invited speakers of the conference providing a picture of each speaker and the title of the talk they will be giving. There should be a session timetable. &lt;br /&gt;An accomodation page. A page listing the suggested hotels for the conference attendees to stay at while at the conference. Prices should be quoted on this page. &lt;br /&gt;A tourist page outlining all the things that a visitor to the area can do while not at the conference. &lt;br /&gt;The site-map section. Normally this would be a simplified list of the main sections of any site - an extended table of contents as an aid to navigation. &lt;br /&gt;For these assignments the site-map section will be used by the student as a site-map for the marker - pointing the marker to the main pages where required elements may be found.&lt;br /&gt;&lt;br /&gt;Assignment One&lt;br /&gt;The first assignment is to set up the basic structure of the web site. Assignment Two will add extra features to the basic structure of Assignment One. Please keep in mind the requirements of Assignment Two when designing your site for Assignment One. &lt;br /&gt;Design&lt;br /&gt;The basic design of the site should be the following: &lt;br /&gt;There should be an entrance page to the site. This should be simple but convey the purpose of the site clearly. &lt;br /&gt;From the entrance or welcome page there should be links to the major sections of the site. &lt;br /&gt;The conference program section. &lt;br /&gt;The accomodation section. &lt;br /&gt;The tourist section. &lt;br /&gt;The site-map section to be used by the student to document the solution for the marker. Required elements must appear in the other sections of the site as well as being documented in this section. &lt;br /&gt;The design of individual pages must be consistent across the site. This means ALL pages (the site-map section as well). &lt;br /&gt;Required elements must be included in the site in a consistent way and be relevant to the page they are in.&lt;br /&gt;&lt;br /&gt;Required Tasks&lt;br /&gt;In the directory ~/CSC2406/html/ass1 create four directories that will contain the documents and images etc. for the four main sections of the site: &lt;br /&gt;program&lt;br /&gt;&lt;br /&gt;This directory will contain the pages, images, scripts etc. pertaining to the conference program. &lt;br /&gt;accomodation&lt;br /&gt;&lt;br /&gt;This directory will contain the pages, images, scripts etc. pertaining to accomodation at the conference. &lt;br /&gt;tourist&lt;br /&gt;&lt;br /&gt;This directory will contain the pages, images, scripts etc. pertaining to the tourist information. &lt;br /&gt;sitemap&lt;br /&gt;&lt;br /&gt;This directory will be used by you to document your solutions to the assignments. &lt;br /&gt;Your site should contain the following elements &lt;br /&gt;Images&lt;br /&gt;&lt;br /&gt;Your site must contain each of the following- &lt;br /&gt;A conference logo which should appear on every page. The image for the logo should have a transparent background. &lt;br /&gt;A Client Side or Server Side image map. &lt;br /&gt;An Animated GIF. &lt;br /&gt;Cascading Style Sheets&lt;br /&gt;&lt;br /&gt;All font changes, all text colors, background colors, H1 to H6 elements, BODY element etc. should be modified using only style sheets. &lt;br /&gt;This means that HTML elements should be modified using style sheets where possible, not by HTML attributes. For example - do not use the attributes of the BODY element to change background color etc. but style commands.&lt;br /&gt;&lt;br /&gt;The site should be readable and navigable with style sheets turned off.&lt;br /&gt;&lt;br /&gt;Page Layout&lt;br /&gt;&lt;br /&gt;Use either CSS2 or tables to format each page of the site. (Those that choose to use CSS2 commands to format each page will be given bonus marks as CSS2 is harder to use and will require more effort. Also browsers are not consistent in their implementation of CSS2 commands. So you must use either the Mozilla or Firefox browsers to test your site as these will be the browsers used to mark your assignment.) &lt;br /&gt;Style Guide&lt;br /&gt;&lt;br /&gt;When designing the site and individual pages follow the suggestions outlined in the style guide module in the study book and the style guide in the resources directory. &lt;br /&gt;Create a welcoming page for the site (in the top level assignment directory). This welcoming page should be simple but eye catching. With basic information about the purpose of the site. &lt;br /&gt;Create at least two pages for each of the other main sections of the site: &lt;br /&gt;Program section &lt;br /&gt;Accomodation Section &lt;br /&gt;Tourist Section &lt;br /&gt;Either write all the pages as XHTML or use the program tidy to convert your HTML into XHTML. This will require reading section 6.10.1 of the Study Book. &lt;br /&gt;Create a Site-map page which will contain the following: &lt;br /&gt;Links to the pages containing the required items in the main part of the site. &lt;br /&gt;Descriptions, with examples from your site - of all the Required images and Image maps. &lt;br /&gt;Explanations how you made your images. &lt;br /&gt;All the component images of the animated gif displayed. A description how you created the component images, and how you created the final animated image. &lt;br /&gt;A description of the rationale for your page design - That is, using the Style Guide Module and the style guide in the resources directory - explain your design. This should be done in point form - each point a specific design decision. &lt;br /&gt;The Site-map directory is to be used to document you solution to the assignments. All the required elements must be in the main part of the site not just on the site-map page. The site-map page must also conform to the overall design criterion you are using for the main site.&lt;br /&gt;&lt;br /&gt;Marking Scheme:&lt;br /&gt;Transparent Logo 6 &lt;br /&gt;Animated Gif 6 &lt;br /&gt;Image Map 7 &lt;br /&gt;Cascading Style Sheets 12 &lt;br /&gt;Used Tables for Formatting 5 &lt;br /&gt;Used CSS2 for Formatting 10 &lt;br /&gt;Used XHTML 4 &lt;br /&gt;Overall Appearence 5 &lt;br /&gt;All links work 5 &lt;br /&gt;Maximum (out of 50 with tables) 50 &lt;br /&gt;Maximum (out of 50 with CSS2) 55 &lt;br /&gt;&lt;br /&gt;Notes:&lt;br /&gt;Your assignment is supposed to look like a real site - not an assignment (Except for the Site-Map section.) &lt;br /&gt;Use your imagination. Don&amp;#39;t be frightened to make information up. The veracity of the information on the site will not be checked. Use the Internet. &lt;br /&gt;Make certain it is clear from perusing your site where all the required elements are. If it is not clear the marker may miss required elements and mark you down accordingly. Have links on the site-map page to the required element in the main part of the site. The required elements Must appear in the main part of the assignment not just in the site-map section. &lt;br /&gt;The &amp;quot;welcome&amp;quot; page for your assignment, that is the first page to be viewed should be called index.html or index.htm. This ensures when marking the assignments they all have the same entry point. These are also the default files the server looks for in a directory when a URL points to a directory. &lt;br /&gt;All your assignment documents should be contained in ONE directory tree. The top directory ass1 has been made for this purpose. &lt;br /&gt;All links should be relative - that is they should NOT contain &lt;br /&gt;A machine name, or &lt;br /&gt;start with a slash. &lt;br /&gt;To ensure that all links on your pages are relative try the following -&lt;br /&gt;&lt;br /&gt;Start your web browser and load the assignment top page using the Open Page pull down menu item. This will load the page directly off disk into the browser. Now check that no links are broken. &lt;br /&gt;Do not have your server running when you do this.&lt;br /&gt;&lt;br /&gt;Relative links should NOT contain a server name or start with a / (slash)&amp;#33;&lt;br /&gt;&lt;br /&gt;Please experiment with the tar command to ensure you have used it correctly. &lt;br /&gt;It is your responsibility to ensure that the tar file you submit is correct.&lt;br /&gt;&lt;br /&gt;If you use FTP to transfer the TAR file between machines, make sure that the transfer is done in BINARY mode. &lt;br /&gt;This assignment must work on a machine running Debian GNU/Linux using the supplied copy of Mozilla or Firefox as the browser. All URLs must be relative.&lt;br /&gt;&lt;br /&gt;[addedon]June 7, 2007, 10:07 pm[/addedon]question 2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Assignment One, you set up the basic design of the site, now you must expand the functionality of the site by adding server side scripts. &lt;br /&gt;Design&lt;br /&gt;All new pages created for this assignment must conform to the design criterion established for Assignment One. &lt;br /&gt;All the pages you created in Assignment One should also be present in Assignment Two not just the new pages or modified pages.&lt;br /&gt;&lt;br /&gt;Tasks&lt;br /&gt;Conference Registration Page&lt;br /&gt;Create a directory called registration. &lt;br /&gt;Create a static XHTML page for conference registration and place the page in the registration directory. &lt;br /&gt;Add a link to the top page of the site to this page. &lt;br /&gt;The registration page is a form that asks the client for his or her registration details. Information required for conference registration will be: &lt;br /&gt;Full Name &lt;br /&gt;Contact Email Address &lt;br /&gt;Name of the Institution &lt;br /&gt;Credit Card type &lt;br /&gt;Credit Card Number &lt;br /&gt;Expiry Date of Credit Card &lt;br /&gt;Use the appropriate XHTML INPUT types. The TEXT input type is not the most appropriate type in all cases. &lt;br /&gt;The POST method should be used to send the data to the script. &lt;br /&gt;Input error checking must be done by the CGI script. (But not the validity of the Credit Card number) &lt;br /&gt;One CGI script will be written that will take the information from the page and output it to a well formed XML text file in the subdirectory registration/payment. There should be one registration per XML file. &lt;br /&gt;&lt;br /&gt;The XML registration files in registration/payment should use the contact email address as the filename (Assume that every person registering will possess a unique email address.) &lt;br /&gt;&lt;br /&gt;A simple way to test if a file already exists is to use &lt;br /&gt;               fptr = fopen(filename,&amp;quot;r&amp;quot;);&lt;br /&gt;               if( fptr &amp;#33;= NULL ) {&lt;br /&gt;                 fclose(fptr);&lt;br /&gt;                 ...the file exists&lt;br /&gt;               }&lt;br /&gt;               &lt;br /&gt;A DTD file should be supplied in the registration/payment directory that can be used to validate the payment files. &lt;br /&gt;The XML files in the registration/payment directory should be password protected from download. The username/password pair that should be used to protect the files should be `payments/1234&amp;#39;. For this assignment place the password file in the registration directory. This file should also be protected from accidental or malicious download by anyone by the appropriate configuration directives. &lt;br /&gt;If the registration information is accepted a polite message should be returned to the client telling them they have successfully registered. &lt;br /&gt;If the registration is not accepted an informative error message must be supplied explaining why it has not been accepted. &lt;br /&gt;Paper title and abstract submission page.&lt;br /&gt;A page to list all the papers to be presented or submit a title and abstract of a paper to be presented. &lt;br /&gt;Create a directory called papers. All files for this section are to be placed in this directory. &lt;br /&gt;Create one CGI script to dynamically display papers or accept papers. &lt;br /&gt;Add a link to the top page of the site to this script. &lt;br /&gt;Everything following is to be dynamically created by one CGI script. &lt;br /&gt;Without input the script should display a default page that offers two choices: &lt;br /&gt;To list all the titles and authors of all the submitted papers to date and &lt;br /&gt;a form for paper and abstract submission. &lt;br /&gt;Submission Option on the default page: &lt;br /&gt;The form on the default submission page should have three fields &lt;br /&gt;Field to enter the names of all of the authors. &lt;br /&gt;Field to enter the name of the principal author. This is the person who will be presenting the paper at the conference. The principal author&amp;#39;s name should be one of the names in the first field. &lt;br /&gt;Field to enter the contact email address of the principal author. &lt;br /&gt;Field to enter the title of the paper. &lt;br /&gt;A text-area to enter the abstract of the paper. &lt;br /&gt;The POST method should be used to send the data to the script. &lt;br /&gt;The CGI script will accept the form information and write the abstract of the paper to a text file. One file - one abstract. The name of the file must be unique (See Notes). The remaining information will be appended to a text file. Each line of the file will contain the principal author, the authors, the title and the name of the file containing the abstract. &lt;br /&gt;Only people who have been registered for the conference should be allowed to present a paper. If the principal author has not registered for the conference the script should not accept the submission, return a polite message and a link to the registration page. &lt;br /&gt;&lt;br /&gt;Use the email address of the principal author to check if a registration/payment file exists with that name. &lt;br /&gt;&lt;br /&gt;A simple way to test if a file already exists is to use &lt;br /&gt;               fptr = fopen(filename,&amp;quot;r&amp;quot;);&lt;br /&gt;               if( fptr &amp;#33;= NULL ) {&lt;br /&gt;                 fclose(fptr);&lt;br /&gt;                 ...the file exists&lt;br /&gt;               }&lt;br /&gt;               &lt;br /&gt;Input error checking must be done by the CGI script. &lt;br /&gt;List Option on the default submission page: &lt;br /&gt;When this option is selected from the default page the script should list the authors and titles of all the accepted papers. &lt;br /&gt;Each listed paper should have a link to the abstract of that paper. &lt;br /&gt;If the abstract link is selected then the script will display ALL the information about that one paper. That is - the principal author, the authors, the title and the abstract. &lt;br /&gt;The GET method should be used to tell the script which paper to display. &lt;br /&gt;Marking Scheme:&lt;br /&gt;Registration Section 25 &lt;br /&gt;Submission Section 45 &lt;br /&gt;Design of new pages 10 &lt;br /&gt;Error Checking of Scripts 20 &lt;br /&gt;Total 100 &lt;br /&gt;&lt;br /&gt;Notes:&lt;br /&gt;Reread the Notes from Assignment One. &lt;br /&gt;All new pages created for this assignment, and that includes dynamic pages created by CGI scripts must be in the same design style as all the pages in Assignment One &lt;br /&gt;CGI scripts are to be written in C. No other language will be accepted. The reason for this is that we can only support one language and all students should have had experience with C. &lt;br /&gt;The libCGI library in C is supplied to simplify the task of writing scripts.&lt;br /&gt;&lt;br /&gt;Scripts should be well commented.&lt;br /&gt;&lt;br /&gt;Study the example scripts supplied with the server and those that can be found in the practicals. &lt;br /&gt;A simple way to test if a file already exists is to use &lt;br /&gt;               fptr = fopen(filename,&amp;quot;r&amp;quot;);&lt;br /&gt;               if( fptr &amp;#33;= NULL ) {&lt;br /&gt;                 fclose(fptr);&lt;br /&gt;                 ...the file exists&lt;br /&gt;               }&lt;br /&gt;               &lt;br /&gt;A simple way to create a unique filename is to use the process identification number of the running script. For example &lt;br /&gt;#include &amp;lt;unistd.h&amp;gt;&lt;br /&gt;char filename[6];&lt;br /&gt;sprintf(filename,&amp;quot;%d&amp;quot;,(int)getpid());&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please note that for a busy site this is NOT the best way of constructing a unique filename - the process id can recycle easily within a day.&lt;br /&gt;&lt;br /&gt;This assignment must work on a Debian GNU/Linux machine running Mozilla or Firefox. All URLs must be relative. All CGI scripts must be handed in as executables and as source. CGI script executables should have filenames ending in .cgi so that they can run in any directory. &lt;br /&gt;Do Not use global configuration directives as the directives will Not be submitted with the assignment. Directory configuration files should be used in the directories that require them. &lt;br /&gt;Some of the file configuration directives in directive configuration files must be absolute. This is the only place where absolute pathnames should ever be used. &lt;br /&gt;The password file must be in the document tree so that it is submitted with your assignment. &lt;br /&gt;Please note that on a commercial site a password file would NEVER be placed in the document tree.&lt;br /&gt;</description>
            <author>terminator4</author>
            <category>Software</category>
            <pubDate>Thu, 07 Jun 2007 22:05:09 +0800</pubDate>
        </item>
    </channel>
</rss>
