PERL/C3/Perl-and-HTML/Khasi
From Script | Spoken-Tutorial
Revision as of 14:38, 29 August 2017 by Pdiangburom (Talk | contribs)
'Time | Narration |
00:01 | Khublei ngi pdiangsngewbha iaphi sha ka Spoken Tutorial halor ka Perl and HTML. |
00:06 | Ha kane ka jinghikai, ngin ia pule kumno ban shna ia ki
html pages bad CGI module. |
00:14 | Ban record ia kane ka jinghikai, nga pyndonkam da ka:
Ubuntu Linux 12.04 operating system Perl 5.14.2 Firefox Web Browser Apache HTTP server bad 'gedit' Text Editor. |
00:31 | Phi lah ban pyndonkam da kano kano ka text editor katkum kamon jong phi. |
00:35 | Ban bud ia kane ka jinghikai, phi dei ban don ia ka jingtip shaphang ka Perl programming. |
00:40 | Lada phim don, leit sha ki spoken tutorials jong ka Perl ha ka spoken tutorial website. |
00:47 | Perl program kiba pyndonkam ha ka web la khot ka Perl CGI. |
00:52 | CGI ka ieng ha ka jaka jong ka Common Gateway Interface. |
00:56 | Kadei ka interface ban pyniaid ia ka client-server web communication. |
01:01 | CGI.pm kadei ka Perl module kaba shah install ryngkat bad ka Perl installation kaba pyniaid ia ka communication. |
01:10 | CGI.pm ka lah long ba la khreh ban pyndonkam ia ka functions ban iarap ia ki developers, ban write ia ki Perl CGI applications. |
01:19 | Ynda ka file ha ka directory ka shah khot na ka web browser, ym kum ka HTTP server, Perl CGI kiba ki scripts ki shah execute bad phah biang kylla ia ka output sha ka browser ban display. |
01:33 | Kane ka function la khot ka CGI bad ki programs la khot ki CGI scripts. |
01:40 | CGI programs ki lah ban dei ki Perl script, Shell Script, C lane C++ program. |
01:47 | Mynta, to ngin ia peit ia ka sample Perl program. |
01:50 | Phai sha ka terminal. |
01:53 | To ngin ia plie ia ka file cgiexample.pl ha ka gedit kaba ngi lah dep save lypa. |
02:01 | Ha ka cgiexample dot pl file, type ia u code harum kumba lah pyni ha ka screen. |
02:08 | To mynta ngin ia pyrshang ban sngewthuh ia u code. |
02:11 | use CGI statement ka iathuh ia ka Perl ba ngi kwah ban pyndonkam ia ka CGI.pm module ha ka program jong ngi. |
02:19 | Kan sa load ia ka module ban pynlong ia ka set jong ki CGI functions kiba don na ka bynta u code jong ngi. |
02:26 | Ban sdang ia ka HTML, ngi pyndonkam ia ka method start_html(). |
02:33 | “My Home Page” kadei ka kyrteng jong kapage ba lah ai na ka bynta ka web page. |
02:38 | Ngi lah ban print kano kano ka HTML tag da kaba pyndonkam ia ka CGI module. |
02:43 | Heading tags lah pynithuh da ki h1, h2 bad kiwei kiwei. |
02:49 | Ka end_html method ka pynphai ia ka BODY bad HTML tags. |
02:55 | Mynta, save ia ka file. |
02:57 | Hashwa ba ngin pyrshang ban run ia ka script lyngba ka web server, to ngin ia pyrshang ban run ia ka na ka command line. |
03:04 | Phai biang sha ka terminal bad type: perl cgiexample.pl bad shon Enter. |
03:12 | Ka output kalong kum ka HTML. |
03:15 | Hadien kane, ngin ia test ia kajuh ka script lyngba ka web server. |
03:20 | Nyngkong, to ngin ia check lada ka web server ka treikam ne em. |
03:25 | Plie ia ka web browser bad pyndap ia u IP address jong ka machine bad shon Enter. |
03:31 | Lymda kumta, phi lah ban type kum "localhost". |
03:35 | Lada baroh ki treikam bha, phin sa iohi katto katne kiba long kum kane ha ka browser. |
03:40 | Lada phi ioh kano kano ka error, te kamut ba ka web service kam pat install lane kam don ha ka ON status. |
03:48 | Apache HTTP server ka lah install ha ka machine jong nga. |
03:52 | Lada kam pat install, execute ia ka command harum ha ka terminal. |
03:58 | Lymda kumta, sngewbha ban ong ia u system administrator na ka bynta ka server configuration. |
04:04 | Mynta, ngin ia test ia kajuh ka script lyngba ka web server. |
04:09 | Na ka bynta kane, ngi donkam ban bud ia katto katne ki steps. |
04:13 | Nyngkong, buh ia ka program jong ngi ha ka cgi-bin directory ha kaba ka web server kan ithuh ia ka kum ka CGI script. |
04:22 | Ka kyrteng jong ka program kadei ban kut da u dot pl lane dot cgi extension. |
04:29 | Set ia ka permission na ka bynta ka file ban execute ha kaserver. |
04:33 | Run ia ka script. |
04:35 | Ka URL na ka bynta kane ka program kan dei kumba la pyni ha ka slide. |
04:40 | Phai sha ka terminal. |
04:42 | Mynta, ngin ia copy ia ka file sha ka cgi-bin directory. |
04:47 | na ka bynta kane, type ia ka command:sudo space cp space cgiexample.pl /usr/lib/cgi-bin/. |
05:03 | Pyndap ia u password lada donkam. |
05:06 | Hadien kane, ngi donkam ban ai ia ka Web-server user 'read' bad 'execute' permission na ka bynta ka file. |
05:13 | Na ka bynta kane, type: sudo space chmod space 755 space /usr/lib/cgi-bin/cgiexample.pl |
05:31 | Mynta, ka file jong ngi kaba ngi lah buh ha ka cgi-bin directory ka lah long ba la khreh ban execute. |
05:38 | Leit sha ka web browser. |
05:41 | Type: localhost/cgi-bin/cgiexample.pl bad shon Enter. |
05:50 | Ngi lah ban iohi ia ka output kaba lah execute ha ka web browser. |
05:55 | Mynta, to ngin ia peit ia kawei pat ka program. Kane ka program kan sa pyndap ia ki fields sha kaform bad ka sei ia ki values ba lah pyndap sha ka web page. |
06:06 | Ha ka cgi-bin directory ba lah shna hashwa, nga lah save ia ka file 'form.cgi'. Ngan plie ia kane ka file ha ka gedit. |
06:17 | Mynta, pyndap ia ki lain harum. Kane ka program ka pynmih ia kafeedback form. |
06:24 | U nongpyndonkam u dei ban pyndap ia ka first name, last name, gender bad ki jingai jingmut ba bniah. |
06:31 | Ban sdang ia ka form, ngi ia pyndonkam ia ka start_form() method. |
06:36 | Form field methods ki long ia syriem bad ka standard html tag methods. |
06:42 | Ban shna ia ka textbox ha ka form, Textfield() method lah pyndonkam bad katto katne ki parameters. |
06:49 | Hangne “fname”, “lname” kidei ki kyrteng jong ka textbox kiba ioh ia ki input na u nongpyndonkam. |
06:57 | radio underscore group ka batai ia u radio button ryngkat ar tylli ki options “Male” bad “Female”. |
07:05 | La buh dak ia kane da u parameter hyphen values. |
07:09 | hyphen default parameter ka pynithuh ia ka default selection jong u radio button. |
07:15 | popup underscore menu ka batai ia ka listbox option. |
07:20 | Submit button la pyndonkam ban submit ia ki data ba lah pyndap sha ka URL provider. |
07:26 | Clear button lah pyndonkam ban pynkhuid ia ka form. |
07:30 | Ka displayform function ka sei ia ki values, kiba ngi pyndap ha ka form. |
07:36 | param() function ka ai ia ka value jong ka form field kaba ka kyrteng ka lah pass kum u parameter. |
07:42 | Hangne “fname” kadei ka kyrteng ba lah shna sha ka “First Name” textbox. |
07:47 | U value u lah shah sei bad buh ha ka variable dollar name1. |
07:53 | To mynta ngin ia execute ia ka program. |
07:56 | Leit sha ka web browser. |
07:58 | Type: localhost/cgi-bin/form.cgi bad shon Enter. |
08:06 | Ka feedback form ka lah paw. |
08:09 | Ngan pyndap ia ki data ha kane ka form kumba la pyni hangne. |
08:15 | Nangta, shon ia u Submit button ban iohi ia ka output kaba lah sei na ka form. |
08:21 | Da kane ngi lah poi sha kaba kut jong kane ka jinghikai. To ngin ia batai kyllum. |
08:26 | Ha kane ka jinghikai, ngi lah pule kumno ban shna ia ki html pages da kaba pyndonkam ia ka CGI module. |
08:33 | Ka kam na ka bynta jong phi- Ha ka form.cgi program, pyndap ia ka checkbox option na ka bynta ki languages Java, C/C++ bad Perl. |
08:44 | Pyndap text area option ban ioh ia ka jingai jingmut na u nongpyndonkam. |
08:48 | Print ia ka jingtip jong u nongpyndonkam ba lah pyndap ha ka webpage. |
08:52 | Ka video ha ka link harum ka batai kyllum ia ka Spoken Tutorial project.
Sngewbha download bad peit ia ka. |
08:59 | Ka kynhun jong ka Spoken Tutorial Project:
Ka pynlong ia ki workshops da kaba pyndonkam ia ki spoken tutorials bad Ka ai certificates sha kito kiba pass ha ka online tests. |
09:08 | Na ka bynta ki jingtip ba bniah, sngewbha thoh sha ngi. |
09:11 | Ia ka Spoken Tutorial project la bei tyngka da ka NMEICT, MHRD, Sorkar India. Kham bun ki jingtip halor kane ka mission kidon ha kane ka link. |
09:23 | Ma nga u Pdiangburom na Shillong, nga pynkut ia kane. Khublei shibun. |