PHP Tutorials - Tutorial Addendum - Directories, Files and Images
| |
This affiliate describes:
- Directory functions.
- File arrangement functions.
- Image functions.
- ShowPhoto.php - a sample program.
Directory Functions
PHP offers the afterward congenital functions to administer directories of book systems:
chdir -- Change directory
chroot -- Change the basis directory
dir -- Agenda class
closedir -- Abutting agenda handle
getcwd -- Gets the accepted alive directory
opendir -- Accessible agenda handle
readdir -- Apprehend access from agenda handle
rewinddir -- Rewind agenda handle
scandir -- Account files and directories central the defined aisle
File Arrangement Functions
PHP offers a lots of nice congenital functions to administer files:
basename -- Allotment filename basic of path
copy -- Copies file
dirname -- Allotment agenda name basic of path
disk_free_space -- Allotment accessible amplitude in directory
disk_total_space -- Allotment the absolute admeasurement of a directory
fflush -- Flushes the achievement to a file
fgetcsv -- Gets band from book arrow and anatomize for CSV fields
file_put_contents -- Address a cord to a file
fileatime -- Gets endure admission time of file
fnmatch -- Bout filename adjoin a pattern
(Continued on next part...)
|
directory, functions, returns, files, directories, space, , gets file, line from, gets line, files and, gets line from, line from file, entire file into, reads entire file, notes directories files, tutorials tutorial notes, tutorial notes directories, php tutorials tutorial, |
Also see ...
i(Continued from antecedent part...)/ifopen Opens book or URLfpassthru Achievement all actual data on a book pointerfputcsv Architecture
i(Continued from antecedent part...)/iimagecolorallocate Admeasure a blush for an imageimagecolorat Get the basis of the blush of a pixelimag
This affiliate explains:Basic RulesReceiving Non ASCII Characters with GET MethodReceiving Non ASCII Characters with Column MethodReceiving Non ASCII
i(Continued from antecedent part...)/i3. From move "C3" to "C4", Internet will advance the URL encoded ascribe strings as is. 4. From move "C4" to "C5", Web server will advance the URL encoded ascribe s
i(Continued from antecedent part...)/iCouple of addendum for this script: The "global" account declares all variables in the all around scope. I don t absolutely charge them to bein the all
i(Continued from antecedent part...)/iIf you accessible the dump file, empInputIsoGet.txt, you will see how ascribe strings are URL encoded in query string, and decoded in $_REQUEST.
i(Continued from antecedent part...)/iReceiving Non ASCII Characters in UTF 8In the antecedent scripts, "charset=iso 8859 1" is acclimated for the ascribe page. Now let s play with
i(Continued from antecedent part...)/iDecoding HTML EntitiesAs you see beforehand in this chapter, if page has "charset=iso 8859 1", Unicode characters will bereceived as HTM
i(Continued from antecedent part...)/iNow access the afterward ascribe strings on InputIsoGetDecoded.php to see what happens: English ASCII: Accost world!Spanish UTF 8: Hola mundo!Korean
This affiliate explains:Basic RulesFrench Characters in HTML Abstracts UTF 8 EncodingFrench Characters in HTML Abstracts ISO 8859 1 EncodingChine