Southampton University Computing Services Implementing Web data access using sirweb.cgi By Dave Doulton University of Southampton
Southampton University Computing Services Agenda Install SIR2000. Install PWS. Copy files from SIR2000 to PWS. Demonstrate web access. Demonstrate General Purpose Web Access Summary
Southampton University Computing Services Install SIR2000 Run Setup.exe. Install licence file. Add SIR2000 to path in autoexec.bat.
Southampton University Computing Services Install Personal Web Server -1 Run setup.exe in either c:\windows\options\cabs\pws or \add-ons\pws on Windows 98 CD
Southampton University Computing Services Install Personal Web Server -2 Choose typical install Leave default directory as suggested. Install Reboot system
Southampton University Computing Services Install Personal Web Server -3 If mstdcw causes a fault on reboot run msconfig from run button choose startup tab unclick entry MSTDC mstdcw -start restart machine
Southampton University Computing Services Copy files from SIR2000 to PWS. Copy sirweb.cgi from SIR2000 directory to c:\inetpub\wwwroot\cgi-bin Copy red.gif from SIR2000\images to c:\inetpub\wwwroot\images Copy your html and your pql files to c:\inetpub\wwwroot
Southampton University Computing Services Demonstrate web access - 1 Click on publish icon, check server running. Start web browser enter sirapp=sysproc.cgi.go&sirmem=Run &sirtxt=descrip localhost can be machine’s name
Southampton University Computing Services Demonstrate web access - 2 More friendly to make a form and allow to choose what to run. Using simple HTML
Southampton University Computing Services Demonstrate web access - 3 SIR demo flush cache default stdout hello call welcome picture splash run file descriptive data entry report full report table tables excel spss File to execute <input type="text" size="20" name="RUNFILE">
Southampton University Computing Services Demonstrate web access - 4 Most useful option is sysproc.cgi.runfile uses parameter RUNFILE to specify source PQL call sysproc.tools.htmlcode program write(cgi)' ' end program
Southampton University Computing Services Demonstrate web access - 5 Simple form to run file Run SIR PQL File to execute
Southampton University Computing Services Demonstrate web access - 6 You can have a form that does not look like a form and always does the same thing Run Descriptive run desciptive
Southampton University Computing Services Demonstrate web access - 7 Source of descrip RETRIEVAL PROCESS CASES ALL. PROCESS REC EMPLOYEE. GET VARS CURRPOS. PERFORM PROCS. END PROCESS REC END PROCESS CASES DESCRIPTIVE VARIABLE=CURRPOS / FILENAME=CGI/ END RETRIEVAL
Southampton University Computing Services Demonstrate General Purpose Web Access -1 Based around idea from data sysproc.cgi.entry Has two versions show and update based on hidden value on form DB_WR=yes means update anything else just show
Southampton University Computing Services Demonstrate General Purpose Web Access -2 General Purpose SIR2000 Database Access Forms Database Name Password Read Security Write security Database Prefix Database Master
Southampton University Computing Services Demonstrate General Purpose Web Access -3 General Purpose SIR2000 Database Access Forms Database Name Password Read Security Write security Database Prefix
Southampton University Computing Services Summary - 1 Install SIR2000 Install PWS Set up files Test forms
Southampton University Computing Services Summary - 2 Check security Be careful with sirweb.isa Check sysproc.cgi.runfile for source of files Make site available
Southampton University Computing Services The End End of presentation Any Questions?