Manipulating files is a necessity for all programming languages.
PHP privides you many functions for creating, uploading, and editing files etc.
When manipulating files you must be very careful because you can do a lot of damage.
Common errors include editing the wrong file, filling a hard-drive with garbage data, and accidentally deleting a files.
The file lessons will begin with how to create, open, and close a file. After establishing those basics, we will study other important file tasks, such as: read, write, append, truncate, and uploading files etc.
Note For more detail please see Php Manual at http://www.php.net
Programming ဘာသာ အမ်ိဳးမ်ိဳး တိုင္းသည္ files မ်ားကို လိုအပ္သလို ျပဳျပင္ ေျပာင္းလည္း ေပးႏိုင္ရ ပါမည္။
PHP ကိုသံုး၍ files မ်ားကို ဖန္တည္းျခင္း၊ ျပင္ဆင္ျခင္၊ ပယ္ဖ်က္ျခင္း upload လုပ္ျခင္း စသည္ တို႔ကို ျပဳလုပ္ ႏိုင္ပါသည္။
File မ်ားကို ကိုင္တြယ္ ရာတြင္ အမွတ္တမဲ့ ပ်က္မွဳမ်ား ျဖစ္သြား ႏိုင္သျဖင့္ အထူး သတိ ထားရန္ လုိအပ္ ပါသည္။
File မ်ားကို မွားၿပီး ဖ်က္မိျခင္း၊ မွားၿပီး ျပင္ဆင္ မိျခင္း၊ hard-drive တြင္ မလိုအပ္ေသာ ဖိုင္မ်ားျဖင့္ save လုပ္မိျခင္ စသည့္ အမွားမ်ား လုပ္မိႏိုင္ ပါသည္။
File သင္ခန္း စာကို ဖိုင္ ဖန္တည္းျခင္း (create) ဖိုင္ဖြင့္ျခင္း (open) ႏွင့္ ဖိုင္ပိတ္ျခင္း (close) တို႔ျဖင့္ စတင္ ပါမည္။ ထို႔ေနာက္ ဖိုင္ထဲတြင္ ေရးျခင္း (write), ဖတ္ျခင္း (read), ထပ္ျဖည့္ျခင္း (append), ဖိုင္တြင္ ေရးထား သည္တို႔ ကို ဖ်က္ပစ္ျခင္း (truncate) ႏွင့္ uploading လုပ္ျခင္း တို႔ကို ေလ့လာ ပါမည္။