You are here: Articles > Computers & Technology > php

 See more articles about "php "

PHP Tutorials - Tutorial Addendum - Directories, Files and Images



 31 December 18:00   

    



    



    



    

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

        



  •     



  •     

    clearstatcache -- Clears book cachet cache

        



  •     



  •     

    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

        



  •     



  •     

    fclose -- Closes an accessible book pointer

        



  •     



  •     

    feof -- Tests for end-of-file on a book pointer

        



  •     



  •     

    fflush -- Flushes the achievement to a file

        



  •     



  •     

    fgetc -- Gets appearance from book pointer

        



  •     



  •     

    fgetcsv -- Gets band from book arrow and anatomize for CSV fields

        



  •     



  •     

    fgets -- Gets band from book pointer

        



  •     



  •     

    fgetss -- Gets band from book arrow and band HTML tags

        



  •     



  •     

    file_exists -- Checks whether a book or agenda exists

        



  •     



  •     

    file_get_contents -- Reads absolute book into a string

        



  •     



  •     

    file_put_contents -- Address a cord to a file

        



  •     



  •     

    file -- Reads absolute book into an array

        



  •     



  •     

    fileatime -- Gets endure admission time of file

        



  •     



  •     

    filemtime -- Gets book modification time

        



  •     



  •     

    fileperms -- Gets book permissions

        



  •     



  •     

    filesize -- Gets book size

        



  •     



  •     

    filetype -- Gets book type

        



  •     



  •     

    flock -- Carriageable advising book locking

        



  •     



  •     

    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,

Share PHP Tutorials - Tutorial Addendum - Directories, Files and Images:
Digg it!   Google Bookmarks   Del.icio.us   Yahoo! MyWeb   Furl  Binklist   Reddit!   Stumble Upon   Technorati   Windows Live   Bookmark

Text link code :
Hyper link code:

Also see ...

PHP Tutorials - Tutorial Addendum - Directories, Files and Images
i(Continued from antecedent part...)/ifopen Opens book or URLfpassthru Achievement all actual data on a book pointerfputcsv Architecture

PHP Tutorials - Tutorial Addendum - Directories, Files and Images
i(Continued from antecedent part...)/iimagecolorallocate Admeasure a blush for an imageimagecolorat Get the basis of the blush of a pixelimag

PHP Tutorials - Tutorial Addendum - Accepting Non ASCII Characters from Ascribe Forms
This affiliate explains:Basic RulesReceiving Non ASCII Characters with GET MethodReceiving Non ASCII Characters with Column MethodReceiving Non ASCII

PHP Tutorials - Tutorial Addendum - Accepting Non ASCII Characters from Ascribe Forms
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

PHP Tutorials - Tutorial Addendum - Accepting Non ASCII Characters from Ascribe Forms
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

PHP Tutorials - Tutorial Addendum - Accepting Non ASCII Characters from Ascribe Forms
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.

PHP Tutorials - Tutorial Addendum - Accepting Non ASCII Characters from Ascribe Forms
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

PHP Tutorials - Tutorial Addendum - Accepting Non ASCII Characters from Ascribe Forms
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

PHP Tutorials - Tutorial Addendum - Accepting Non ASCII Characters from Ascribe Forms
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

PHP Tutorials - Tutorial Addendum - Non ASCII Characters in HTML abstracts
This affiliate explains:Basic RulesFrench Characters in HTML Abstracts UTF 8 EncodingFrench Characters in HTML Abstracts ISO 8859 1 EncodingChine