test taker readme

Upload: debabrata-nayak

Post on 05-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/2/2019 Test Taker Readme

    1/8

    BUILDINGTHE"ENTRANCEEXAMTESTTAKER".

    TECHNOLOGIESUSED:HTML,CSS,JAVASCRIPT,AZAX,PHP,MySQLSERVER,WAMPSERVER.

    STRATEGY:1.SHOULDWORKASASTANDALONEAPPLICATIONUSINGWAMPSERVERINTHEBACKGROUND.

    2.SHOULDLATTERONBEUPLOADABLETOAWEBSITEANDWORKPROPERLY.

    PROCEDURE:

    VERSION1.1

    1.MakeaTest_Taker.htmlforminHTMLusingKompozer.2.OntheFormthereshouldbeaquestionfollowedbyfourchoices.

    Aradiobuttonshouldbethereontheleftofeachofthechoices.ANextCommandButtonistobemadetonavigatetothenextquestion.APreviousCommandButtonistobemadetonavigatetothepreviousques

    tion.3.StartWampserver.4.MakeaMySQLdatabasenamedEntrance_Exam.MakeonlyonetablenamedQuestions.

    5.Thetableshouldhave7columns:Question_Number,Question,Choice_A,Choice_B,Choice_C,Choice_D,Answer.6.Populatethetablewith5questions.7.MakeaTest_Taker.html.phppagewhichtalkswiththeHTMLFormandtheMySQLDatabase.8.WritecodefortheNextandPreviousCommandButtonsinthePHPpage.9.TesttheHTMLForm.

    VERSION1.2

    1.Onthetopoftheform,linksavailableare:PMT.Trytofollowdesignofwww.W3SCHOOLS.COM.

    VERSION1.3

    1.Onthelefthandsideoftheform,relevantsubjectsalongwithchaptersofeachsubjectshouldbedisplayed.2.Onclickingalinkontheleftofthepage,questionsfromthatparticularchaptershouldonlybedisplayed.

    VERSION2.1

    1.Addlinksonthetopoftheform:AIIMS,AIEEE,OJEE,IIT.2.Onclickingalinkonthetopofthepage,thelefthandlinksshouldchangedynamically.

  • 8/2/2019 Test Taker Readme

    2/8

    VERSION2.2

    1.MakeaCSSstylesheettogivethewebpageastandardlookwiththelogoofVidyaCoachingCentre.

    Version2.3

    1.Givemarkstothetesttaker.Correctanswergets4marksandwronganswergets-1.Thetesttakershouldbeabletoviewhistotalmarksachievedagainstthetotalmarksattempted.

    Version2.4

    1.RegisteraNewUser.2.Makedatabasetosavenewusernameandpassword.3.MakearrangementstomaketheuserLogin.

    Version2.5

    1.Trytorememberthemarksoftheregistereduser.

    Version2.6

    1.Givetheusertheoptiontogiveatestcontainingquestionswhoseanswerswerenotprovidedcorrectlybytheuserinthepreviously.

    Version3.1

    1.Automaticallysendtheresultsofthetestgivenbytheusertohisemailaddress.

    Version3.2

    1.Atthebottomofthepage,givereferencesofbooksincludingpagenumberswhereonecanrefertoincaseofdoubtsinthatquestion.2.GiveLinkstothebooks,orURLwheremoreinformationcanbehadregardingthatquestion.

    **********************************DOWNLOADMySQLSERVERANDINSTALLITTOYOURCOMPUTER***************************************************************

  • 8/2/2019 Test Taker Readme

    3/8

    1.REFERENCE:BuildYourOwnDatabase-DrivenWebsiteUsingPHP&MySQLbyKevinYankISBN:0957921810SitePoint2003(275pages)Thisbookisahands-onguidetolearningallthetools,principles,andtechniquesneededtobuildafullyfunctionaldatabase-drivenWebsiteusingPHPandMySQLfromscratch.

    2.WindowsInstallation\\\\\\\\\\InstallingMySQL\\\\\\\\\\

    AsImentionedabove,MySQLmaybedownloadedfreeofcharge.Simplyproceedtohttp://www.mysql.com/downloads/andchoosetherecommendedstablerelease(asofthiswriting,itisMySQL3.23).OntheMySQL3.23downloadpage,undertheheadingofWindowsdownloads,clicktheDownloadlinknexttothelatestversionofMySQL(3.23.54asofthiswriting).Afterdownloadingthefile(it'sabout13MBasofthiswriting),unzipitandrunthesetup.exeprogramcontainedtherein.Onceinstalled,MySQLisreadytoroll(barringacoupleofconfigurationtasksthatwe'lllookatshortly),exceptforoneminorissuethatonlyaffectsyouifyou'rerunningWindowsNT,2000,XP,or.NETServer.Ifyouuseanyofthoseoperatingsystems,findafilecalledmy-small.cnfinthedirectorytowhichyoujustinstalledMySQL.CopyittotherootofyourC:driveandrenameittomy.cnf.Seethefollowingsidebarifyouhaveanytroubleworkingwith.cnffilesonyourWindowssystem.Workingwith.cnffilesinWindows.

    Itjustsohappensthatfilesendingin.cnfhaveaspecialmeaningtoWindows,soevenifyouhaveWindowsconfiguredtoshowfileextensions,themy-small.cnffilewillstillappearassimplymy-smallwithaspecialicon.WindowsactuallyexpectsthesefilestocontainSpeedDiallinksforMicrosoftNetMeeting.Assumingyoudon'tuseNetMeeting(oratleastyoudon'tuseitsSpeedDialfacility)youcanremovethisfiletypefromyoursystem,enablingyoutoworkwiththesefilesnormally:OpentheWindowsRegistryEditor(inWinNT/2000/XP/.NET,clickStart,Run...,andthentyperegedt32.exetolaunchit,inWin9x/MErunregedit.exeinstead).

    1.NavigatetotheHKEY_LOCAL_MACHINE\SOFTWARE\Classesbranchoftheregistry,whereyou'llfindalistofalltheregisteredfiletypesonthesystem.2.Selectthe.cnfkeyandchooseEdit,Deletefromthe

    3.menutoremoveit.4.Logoutandlogbackin,orrestartWindowsforthechangetotakeeffect.

    Ifyouprefernottomesswiththefiletypesonyoursystem,however,youshouldstillbeabletoopenthefilesinNotepadtoeditthemandyoucanrenameittomy.cnfbyrenamingtheSpeedDiallinkicontomy(Windowswillmaintainthe.cnfextensionautomatically).

    Ifyoudon'tliketheideaofaMySQLconfigurationfilesittingintherootofyourC:drive,youcaninsteadnameitmy.iniandputitinyourWindowsdirectory(e.g.D:\WINDOWSorD:\WINNTifWindowsisinstalledondriveD:).Whicheveryouchoose,openthefileinNotepadandlookforthefollowinglines:

    #basedir=d:/mysql/#datadir=d:/mysql/data/

    Uncommenttheselinesbyremovingthe#symbolatthestart,andchangethepathstopointtoyourMySQLinstallationdirectory,usingslashes(/)insteadofbackslashes(\).Forinstance,Ichangedthelinesonmysystemtoreadasfollows:

    basedir=d:/ProgramFiles/MySQL/datadir=d:/ProgramFiles/MySQL/data/

  • 8/2/2019 Test Taker Readme

    4/8

    Withthatchangemade,savethefileandcloseNotepad.MySQLwillnowrunonyourWindowsNT/2000/XPsystem!Ifyou'reusingWindows95/98/ME,thisstepisnotnecessaryMySQLwillrunjustfineas-installed.

    JustlikeyourWebserver,MySQLisaprogramthatshouldberuninthebackgroundsothatitmayrespondtorequestsforinformationatanytime.TheserverprogrammaybefoundinthebinsubfolderofthefolderintowhichyouinstalledMySQL.Tomakethingscomplicated,however,thereareactuallyseveralversionsoftheMySQLservertochoosefrom:

    mysqld.exeThisisthebasicversionofMySQLifyourunWindows95,98,orME.Itincludessupportforalladvancedfeatures,andincludesdebugcodetoprovideadditionalinformationinthecaseofacrash(ifyoursystemissetuptodebugprograms).Asaresultofthiscode,however,theservermightrunalittleslow,andI'vegenerallyfoundthatMySQLissostablethatcrashesaren'treallyaconcern.

    mysqld-opt.exeThisversionoftheserverlacksafewoftheadvancedfeaturesofthebasicserver,anddoesnotincludethedebugcode.It'soptimizedtorunquicklyontoday'sprocessors.Forbeginners,theadvancedfeaturesarenotabigconcern.Youcertainlywon'tbeusingthemwhileyoucompletethetasksinthisbook.ThisistheversionofchoiceforbeginnersrunningWindows95,98,orME.

    mysqld-nt.exeThisversionoftheserveriscompiledandoptimizedlikemysqld-opt,butisdesignedtorununderWindowsNT/2000/XP/.NETasaservice.Ifyou'reusinganyofthoseoperatingsystems,thisisprobablytheserverforyou.mysqld-max.exeThisversionislikemysqld-opt,butcontainsadvancedfeaturesthatsupporttransactions.mysqld-max-nt.exeThisversion'ssimilartomysqld-nt,buthasadvancedfeaturesthatsupporttransactions.

    Alltheseversionswereinstalledforyouinthebindirectory.Ifyou'rerunningonWin98x/MEIrecommendstickingwithmysql-optfornowmovetomysqld-maxifyoueverneedtheadvancedfeatures.OnWindowsNT/2000/XP/.NET,mysqld-ntismyrecommendation.Upgradetomysqld-max-ntwhenyouneedmoreadvancedfeatures.

    StartingMySQLisalsoalittledifferentunderWinNT/2000/XP/.NET,butthistimelet'sstartwiththeprocedureforWin95/98/ME.OpenanMS-DOSCommandPrompt[2]andproceedtotheMySQLbindirectory,andrunyourchosenserverprogram:

    C:\mysql\bin>mysqld-opt

    Don'tbesurprisedwhenyoureceiveanothercommandprompt.Thiscommandlaunchestheserverprogramsothatitrunsinthebackground,evenafteryouclosethecommandprompt.IfyoupressCtrl-Alt-Deltopullupthetasklist,youshouldseetheMySQLserverlistedasoneofthetasksthat'sactiveonyoursystem.

    ToensurethattheserverisstartedwheneverWindowsstarts,youmightwanttocreateashortcuttotheprogramandputitinyourStartupfolder.Thisisjus

    tlikecreatingashortcuttoanyotherprogramonyoursystem.

    OnWinNT/2000/XP/.NET,youmustinstallMySQLasasystemservice.Fortunately,thisisveryeasytodo.SimplyopenaCommandPrompt(underAccessoriesintheStartMenu)andrunyourchosenserverprogramwiththe--installoption:C:\mysql\bin>mysqld-nt--installServicesuccessfullyinstalled.ThiswillinstallMySQLasaservicethatwillbestartedthenexttimeyourebootWindows.TomanuallystartMySQLwithouthavingtoreboot,justtypethiscommand(whichcanberunfromanydirectory):C:

  • 8/2/2019 Test Taker Readme

    5/8

    \>netstartmysql

    TheMySQLserviceisstarting.TheMySQLservicewasstartedsuccessfully.

    ToverifythattheMySQLserverisrunningproperly,pressCtrl-Alt-DelandopentheTaskList.Ifalliswell,theserverprogramshouldbelistedontheProcessestab.

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ************DOWNLOADMySQLSERVERANDINSTALLITTOYOURCOMPUTER***********************ACTUALPROCEDUREOND.NAYAK'SCOMPUTER***************************

    1.LogintothecomputerasanAdministrator.2.MySQLcanbedownloadedfreeofcharge.Gotohttp://www.mysql.com/downloads/3.DownloadthefreeMySQLServerCommunityEdition.DownloadaversionthatincludesaWindowsInstaller.Ifnotsureseenextpoint.4.Ifyourenotsurewhichversiontoselect,downloadMySQLInstallerforWindo

    ws.5.Unzipthedownloadedfile.6.Double-clickSetup.exe.Thisinitiatesthesetupprocess.7.

    3.Followthestepsgiveninthispage:http://www.wikihow.com/Install-the-MySQL-Database-Server-on-Your-Windows-PC

    3.choosetherecommendedstablerelease(asofthiswriting,itisMySQL3.23)

    .4.OntheMySQL3.23downloadpage,undertheheadingofWindowsdownloads,clicktheDownloadlinknexttothelatestversionofMySQL(3.23.54asofthiswriting).5.Afterdownloadingthefile(it'sabout13MBasofthiswriting),unzipitandrunthesetup.exeprogramcontainedtherein.6.Onceinstalled,MySQLisreadytoroll(barringacoupleofconfigurationtasksthatwe'lllookatshortly),exceptforoneminorissuethatonlyaffectsyouifyou'rerunningWindowsNT,2000,XP,or.NETServer.7.Ifyouuseanyofthoseoperatingsystems,findafilecalledmy-small.cnfinthedirectorytowhichyoujustinstalledMySQL.8.CopyittotherootofyourC:driveandrenameittomy.cnf.Seethefollowingsidebarifyouhaveanytroubleworkingwith.cnffilesonyourWindowssystem.

    Workingwith.cnffilesinWindows.

    Itjustsohappensthatfilesendingin.cnfhaveaspecialmeaningtoWindows,soevenifyouhaveWindowsconfiguredtoshowfileextensions,themy-small.cnf

  • 8/2/2019 Test Taker Readme

    6/8

    filewillstillappearassimplymy-smallwithaspecialicon.WindowsactuallyexpectsthesefilestocontainSpeedDiallinksforMicrosoftNetMeeting.Assumingyoudon'tuseNetMeeting(oratleastyoudon'tuseitsSpeedDialfacility)youcanremovethisfiletypefromyoursystem,enablingyoutoworkwiththesefilesnormally:OpentheWindowsRegistryEditor(inWinNT/2000/XP/.NET,clickStart,Run...,andthentyperegedt32.exetolaunchit,inWin9x/MErunregedit.exeinstead).

    1.NavigatetotheHKEY_LOCAL_MACHINE\SOFTWARE\Classesbranchoftheregistry,whereyou'llfindalistofalltheregisteredfiletypesonthesystem.2.Selectthe.cnfkeyandchooseEdit,Deletefromthe3.menutoremoveit.4.Logoutandlogbackin,orrestartWindowsforthechangetotakeeffect.

    Ifyouprefernottomesswiththefiletypesonyoursystem,however,youshouldstillbeabletoopenthefilesinNotepadtoeditthemandyoucanrenameittomy.cnfbyrenamingtheSpeedDiallinkicontomy(Windowswillmaintainthe.cnfextensionautomatically).

    Ifyoudon'tliketheideaofaMySQLconfigurationfilesittingintherootofyourC:drive,youcaninsteadnameitmy.iniandputitinyourWindowsdirectory(e.g.D:\WINDOWSorD:\WINNTifWindowsisinstalledondriveD:).Whicheveryouchoose,openthefileinNotepadandlookforthefollowinglines:

    #basedir=d:/mysql/#datadir=d:/mysql/data/

    Uncommenttheselinesbyremovingthe#symbolatthestart,andchangethepathstopointtoyourMySQLinstallationdirectory,usingslashes(/)insteadofbackslashes(\).Forinstance,Ichangedthelinesonmysystemtoreadasfollows:

    basedir=d:/ProgramFiles/MySQL/datadir=d:/ProgramFiles/MySQL/data/Withthatchangemade,savethefileandcloseNotepad.MySQLwillnowrunonyourWindowsNT/2000/XPsystem!Ifyou'reusingWindows95/98/ME,thisstepisnotnecessaryMySQLwillrunjustfineas-installed.

    JustlikeyourWebserver,MySQLisaprogramthatshouldberuninthebackgroundsothatitmayrespondtorequestsforinformationatanytime.TheserverprogrammaybefoundinthebinsubfolderofthefolderintowhichyouinstalledMySQL.Tomakethingscomplicated,however,thereareactuallyseveralversionsoftheMySQLservertochoosefrom:

    mysqld.exeThisisthebasicversionofMySQLifyourunWindows95,98,orME.Itincludessupportforalladvancedfeatures,andincludesdebugcodetoprovideadditionalinformationinthecaseofacrash(ifyoursystemissetuptodebugprograms).Asaresultofthiscode,however,theservermightrunalittleslow,andI'vegenerallyfoundthatMySQLissostablethatcrashesaren'treally

    aconcern.

    mysqld-opt.exeThisversionoftheserverlacksafewoftheadvancedfeaturesofthebasicserver,anddoesnotincludethedebugcode.It'soptimizedtorunquicklyontoday'sprocessors.Forbeginners,theadvancedfeaturesarenotabigconcern.Youcertainlywon'tbeusingthemwhileyoucompletethetasksinthisbook.ThisistheversionofchoiceforbeginnersrunningWindows95,98,orME.

    mysqld-nt.exeThisversionoftheserveriscompiledandoptimizedlikemysqld-o

  • 8/2/2019 Test Taker Readme

    7/8

    pt,butisdesignedtorununderWindowsNT/2000/XP/.NETasaservice.Ifyou'reusinganyofthoseoperatingsystems,thisisprobablytheserverforyou.mysqld-max.exeThisversionislikemysqld-opt,butcontainsadvancedfeaturesthatsupporttransactions.mysqld-max-nt.exeThisversion'ssimilartomysqld-nt,buthasadvancedfeaturesthatsupporttransactions.

    Alltheseversionswereinstalledforyouinthebindirectory.Ifyou'rerunningonWin98x/MEIrecommendstickingwithmysql-optfornowmovetomysqld-maxifyoueverneedtheadvancedfeatures.OnWindowsNT/2000/XP/.NET,mysqld-ntismyrecommendation.Upgradetomysqld-max-ntwhenyouneedmoreadvancedfeatures.StartingMySQLisalsoalittledifferentunderWinNT/2000/XP/.NET,butthistimelet'sstartwiththeprocedureforWin95/98/ME.OpenanMS-DOSCommandPrompt[2]andproceedtotheMySQLbindirectory,andrunyourchosenserverprogram:

    C:\mysql\bin>mysqld-opt

    Don'tbesurprisedwhenyoureceiveanothercommandprompt.Thiscommandlaunchestheserverprogramsothatitrunsinthebackground,evenafteryouclosethecommandprompt.IfyoupressCtrl-Alt-Deltopullupthetasklist,youshouldseetheMySQLserverlistedasoneofthetasksthat'sactiveonyoursystem.

    ToensurethattheserverisstartedwheneverWindowsstarts,youmightwanttocreateashortcuttotheprogramandputitinyourStartupfolder.Thisisjus

    tlikecreatingashortcuttoanyotherprogramonyoursystem.

    OnWinNT/2000/XP/.NET,youmustinstallMySQLasasystemservice.Fortunately,thisisveryeasytodo.SimplyopenaCommandPrompt(underAccessoriesintheStartMenu)andrunyourchosenserverprogramwiththe--installoption:C:\mysql\bin>mysqld-nt--installServicesuccessfullyinstalled.ThiswillinstallMySQLasaservicethatwillbestartedthenexttimeyourebootWindows.TomanuallystartMySQLwithouthavingtoreboot,justtypethiscommand(whichcanberunfromanydirectory):C:\>netstartmysql

    TheMySQLserviceisstarting.

    TheMySQLservicewasstartedsuccessfully.

    ToverifythattheMySQLserverisrunningproperly,pressCtrl-Alt-DelandopentheTaskList.Ifalliswell,theserverprogramshouldbelistedontheProcessestab.

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • 8/2/2019 Test Taker Readme

    8/8