PHP-and-MySQL/C4/Display-Images-from-a-Directory/Khasi

From Script | Spoken-Tutorial
Revision as of 22:28, 5 February 2018 by Meboreen Mary (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:00 Ngi pdiangsngewbha ia phi sha kane ka jinghikai ba lyngkot halor kumno ban list ia ki images ha kadirectory.
00:07 Kane ka jinghikai ka iadei bad ka jinglist ia ki files bad ban manipulate ia ki ban pyndonkam ia ka html code, kum ka image tag , ban echo ia ki images kiba lah list ha ka directory.
00:23 Ka jingmih kaba khatduh kan long iasyriem kum kane .
00:26 Nga lah shna 8 tylli ki images bad kin sa shu shah list hapoh jong ka page. Kidei la ki jong ki jong ki images hangne.
00:33 To ngan shu pyni ia phi kumno ba nga lah set up ia ka directory structure jong nga – ka long kumne.
00:37 Nga don ia ka 'show dot php' file jong nga kaba dei kata kaba ngin iatreikam hangne.
00:42 Bad nangta nga don ia ka 'images' folder jong nga bad kata ka don ia ki images kiba lah list hangne, kumba la pyni.
00:53 Kam don jingktah eiei ha kano ka format ba ki don.
00:56 Ki lah ban don ha ki format ba la khleh lang, ki lah ban don ha kawei ka format bad kano kano ka format jong ka display lane image file lyngba ka html kan treikam.
01:04 Te , hangne ka 'show dot php' jong ngi.
01:06 Bad ha kane ka por kane ka dang thylli bha hangne hapoh.
01:09 Bad khlem pep ngin donkam ia ki php tags jong ngi.
01:13 Bad ka rukom ba ngin leh ia kane kadei – nyngkong ngin set up ia u variable bad ka directory jong ki images jong ngi.
01:20 Bad kumba nga lah pyni hashwa, kane kadei 'images' bad ngin shu don ia u forward slash hangtei.
01:24 Da husiar bad kine ki symbols kiba long kum ki back-slashes. Kidei ki special characters ha ka php kaba iaid lait na u character hadien jong ka.
01:35 Te, kum ka nuksa lada phi don ia ka 'images forward slash photos' te kane kan sa thoh php kum 'images-hotos' namar une u character hangne u cancel noh ia u 'p'.
01:51 Te pynthikna ba phi pyndonkam ia u forward slash bad khlem pep ngim don ia kine ki 'photos' hangne.
01:57 Te, ka kam kaba ngi donkam ban leh kadei ban pyndonkam ia ka 'open dir function'.
02:01 Kane kan sa plie ia ka directory na ka bynta jong ngi.
02:05 Kan nym dei ki contents jong ka directory.
02:08 Kane kan sa shu plie ia kawei ka directory kaba dei kane ka directory hangne.
02:14 Te, ha ka jaka ban buh ia kane kumba ka long kaba ngin leh kadei shu ong lada ka '$open dir' ka iaryngkat bad u variable bathymmai ba kyrteng 'open dir' bad '$dir'. Te ngi ia pyniahap ia kane bad kane hangne.
02:27 Bad kaba kane baroh ka leh kadei, ka ong lada kane lah dep leh pura bad nangta ka assign ia ka 'open dir' sha ka open directory jong ngi, te ngi lah ban manipulate ia ka hadien habud.
02:40 Ka daw ba ngi leh ia kane kadei namar lada ka directory jong phi kam don, ngin ioh ia shibun ki code bad shibun ki errors.
02:47 Kane hangne ka ong lada ngim don ia kino kino ki errors te ngi lah ban bteng bad u code jong ngi hapoh bad ka block jong ngi .
02:56 Biang, te kaba bud mynta ka kham jynjar .
02:59 To ngin sdang ban batai ia kane. Kane kadei ban plie ia ka directory.
03:03 Bad hapoh kaba ngin leh kadei ngin pule ia ka directory , te 'read dir'.
03:09 Bad ngin leh ia kane bad ka while loop namar na ka bynta man kawei ka loop sawdong jong ka while loop ngi kwah ban echo lane pyni ia ka image jong man kawei ka image hapoh jong ka folder.
03:23 Te ngin sdang bad ka while loop jong ngi. Ngin shna kaei kaban iaid bad ka bad hangne ka block jong u code jong ngi ngin execute, hangne hapdeng, na ka bynta ka while loop.
03:32 Biang , na ka bynta kane kaba ngin leh kadei – lada ka $file ka iaryngkat bad ka 'read directory',, kata kadei ka function kaba thymmai kaba nga dang shu pynithuh.
03:44 Bad khlem pep, phi lah ban antad , phi hap ban type 'open dir' variable hangne hapoh.
03:51 Te, kane ka pule ia ka directory kaba ngi lah plie lypa da kaba pyndonkam ia ka 'open dir()' function.
03:57 Te, kine kidei artylli ki functions kiba iarap bha, te nga lah ban harmonize ia kine kawei bad kawei pat.
04:03 Bad sa shisien ngin pynshisha ia kane hangne bad ong lada kam iaryngkat bad 'False' lane lada kam iaryngkat bad lane lada kam plie lane kam lah ban read kata kamut ngi lah ban run bad katto katne ki errors hadien habud.
04:17 Bad ryngkat bad kane ngi donkam ban sdang ia ka structure.
04:20 Ngin donkam ban buh ia kane hapoh ki parenthesis.
04:23 Te, to ngin shu buh ia katei hapoh ki parenthesis.
04:25 Biang, te katei ka dei ban dei ka while statement bapura jong ngi.
04:30 Mynta hapoh kadon kawei ka rukom basuk bha ban leh ia kane namar ngi lah shna ia une u $file variable.
04:35 Bad ngi don hapoh jong ka while loop. Te kane san sa update na ka bynta man kawei ka file kaba don hapoh kane ka directory.
04:40 Te, baroh kaba ngi donkam ban leh kadei mynta ong echo $file bad kaba ngi lah ban kwah ban leh kadei ban pyndap ia u br ha kaba kut jong katei.
04:50 Te, lada ngi plie ia ka browser jong ngi hangne bad refresh, phi lah ban iohi ia baroh ki directories jong ngi lah list .
04:55 Mynta nga don sa kiwei pat ki jinghikai halor ka jinglist ia ka directory, nga tharai nga la ong ia kane mynshwa.
05:00 Ngi don ia u dot bad u double dot, kane kadei tang ki standard notations na ka bynta ki directory structures.
05:05 'dot' nga tharai udei u current directory, artylli ki dots kidei ban phai biang lane kaei kaei kaba kum kata.
05:13 Tangba kaba ngi donkam ban leh mynta kadei, pynshisha ia kane hapoh jong ka loop jong ngi ban pynthikna ngim echo ia une u dot bad une u full-stop, kine artylli ki dots , map ia nga.
05:22 Kadaw kadei lada ngi ia pyni ia kine kum ki images kaba ym don ka valid image bad katei kam dei ka valid image.
05:27 Te, ngin donkam ban iaid lait na kine. Te kaei kaba ngan leh kadei ngan ong if '$file' kam iaryngkat bad 'dot' bad – ngi donkam ia u AND hangne ha ka jaka jong u OR – bad ka file kam iaryngkat bad u 'dot dot'.
05:45 Te, katba ngi dang loop lyngba kan sa ong : "Does this equal dot?"
05:50 Ha ka bynta ba nyngkong kan sa dei 'yes', te ngin iaid lait pura ia kane ka statement hapoh jong ka if jong ngi – ka command hapoh jong ka if statement jong ngi.
05:59 Bad ngi ia check ruh na ka bynta kane ha kajuh ka por, te khlem pep baroh ar kin sa dei true.
06:04 Te mynta kaba ngan leh kadei, refresh bad ngi iohi ba kine ki lah jah.
06:07 Biang te ka kam kaba bud ban leh kadei ban manipulate ia une u '$file' variable hangne ban shna shisha ia ka image.
06:16 Te kaba ngan leh kadei ngan shim noh ia kine baroh bad ngan shu thoh katto katne ki html code kum ka kyntien omni.
06:23 Te, image source ka iaryngkat ia kaei kaei kum kane hangne.
06:26 Phi lah ban batai ia ka height bad ka width tangba ngan nym leh ia kane mynta namar ka image jong nga kadei preset height bad width.
06:33 Khlem pep, lada phi don ia ki images jong baroh ki jait sizes bapher bapher, phin sa kwah ban buh ia ki baroh ha kajuh ka size bad nangta lehse don ia ka hyper link sha ki, te phi lah ban nion ha ki ban peit ia ki kawei kawei.
06:43 Tangba katei ka lah shai bha bad ngan shu pyni ia phi ia u php code ban leh ia ka.
06:50 Biang, bad nangta ngin don ia ka break hadien ,man kawei pa kawei.
06:52 Te hangne hapoh, ka i sammut bha, phi lah ban pyrkhat kan sa buh ia ka 'file' tangba haba phi refresh ia kane, phi iohi pynban ngi ioh ia ka kynhun jong ki broken images.
07:00 Kadaw kadei lada nga nion properties phi lah ban iohi hangne ngi lah ong directory images bad image 1.
07:07 Ngi donkam ia ki images directory hangne.
07:10 Te, ngi lah ban thoh images tangba ngi lah don lypa ia u variable na ka bynta kata, udei 'dir'.
07:14 Te, ngin shu ong 'dir forward slash $file', te kane kan sa dei ka images forward slash file.
07:19 Te mynta haba ngi refresh phin sa iohi ba ngi la poi biang sha ka page kaba nga la pyni ia phi ha kaba sdang jong kane ka jinghikai.
07:27 Te tang katto shaphang jong ka. Kidon shibun kilad ba kham biang ban leh ia ki kam, ban pyntreikam ia ki,bad kumta ter ter.
07:35 Bad lada phi don jingeh eiei sngewbha contact ia nga. Ngan kmen ban iarap.
07:44 Te , khublei shibun na ka bynta ka jingshahskhor jong phi. Nga i Meboreen na Shillong nga dubbed na ka bynta ka Spoken Tutorial Project.

Contributors and Content Editors

Meboreen Mary