Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged files



« Prev 1 2
  1. FAV

    Lister des fichiers en fonction de leur extension

    List only certain files in a folder with PHP Lists only certain files extensions as links on a page from a defined folder
    PHP 1 views posted 6 months ago by martinbrait
  2. FAV

    Lister tous fichiers contenus dans un dossier

    php list all files of a given directory
    PHP 3 views posted 6 months ago by martinbrait
  3. FAV

    Lister répertoires et fichiers commençant par ...

    php list files and directories beginning with .... 1 paramètre d'entrée
    PHP 3 views posted 6 months ago by martinbrait
  4. FAV

    PHP Code to Protect a Word Document Using Aspose for Cloud API

    The following technical tip shows how php developers can protect their word documents in cloud using Aspose for Cloud SDK in php.
    PHP 2 views posted 5 years ago by johansonkatherine
  5. FAV

    Count number of files on a ftp server

    Count number of files on a ftp server
    PHP 1 views posted 6 years ago by Sadeveloper
  6. FAV

    List only certain files in a folder with PHP

    Lists only certain files extensions as links on a page from a defined folder
    PHP saved by 3 people 6 views posted 6 years ago by kidmizere
  7. FAV

    A function to get a files contents with curl.

    A handy function to get the contents of a file with curl. Accepts $_path as a parameter.
    PHP saved by 4 people 3 views posted 7 years ago by o0110o
  8. FAV

    A function to see if a file exists with curl.

    This function will use curl to see if a file exists at the location it's provided. It accepts $_path as a parameter.
    PHP saved by 4 people 5 views posted 7 years ago by o0110o
  9. FAV

    A function to get file sizes in multiple formats with curl.

    A function to get a files size via curl. Accepts $_path, $_unit, $_float, $_username & $_password; In the listed order.
    PHP saved by 4 people 2 views posted 7 years ago by o0110o
  10. FAV

    List all files in a diretory with glob (2)

    List all files in a diretory with glob
    PHP 6 views posted 7 years ago by pruntrut
  11. FAV

    Get file extension from name or complete path

    Get file extension from it's name or complete path
    PHP saved by 6 people 9 views posted 7 years ago by fawazcb
  12. FAV

    wp_conditional css files loading

    wp_conditional css files loading
    PHP 3 views posted 7 years ago by nWidart
  13. FAV

    Get a file extension from a file using PHP

    PHP 7 views posted 8 years ago by lewiswalsh
  14. FAV

    get file extension

    PHP 1 views posted 8 years ago by soup
  15. FAV

    PHP Write File Directory

    PHP 1 views posted 8 years ago by sedgemonkey
  16. FAV

    Scan directory contents recursively

    PHP 0 views posted 9 years ago by noelj
  17. FAV

    Parse files in a directory and output list (example: tinymce emoticons/emotions)

    run this from plugins/emotions and copy/paste the output to emotions.htm
    PHP 2 views posted 9 years ago by hamsterbacke82
  18. FAV

    Download counter

    Counts the number of times that a file has been downloaded, using PHP and mySQL
    PHP 1 views posted 9 years ago by eme_dlr
  19. FAV

    match_files_in_directory

    Returns an array of files that match a search term in a certain directory.
    PHP saved by 2 people 0 views posted 9 years ago by mattkenefick
  20. FAV

    Load Folder into PHP array

    Loops through all files of a certain extension in the specified directory. Can be used to list all images in a given directory.
    PHP 3 views posted 9 years ago by sandman7OR
  21. FAV

    Delete temporary files

    This example shows how to delete specific files after a given time span. This works good for cleaning cached files.
    PHP saved by 1 person 2 views posted 9 years ago by fackz
  22. FAV

    Eliminar directorio con ficheros dentro

    Delete a directory including its contents.
    PHP 0 views posted 9 years ago by jrobinsonc
  23. FAV

    Calculate file size with range i.e bytes, kb, mb, gb

    PHP 3 views posted 10 years ago by ReeceMarsland
  24. FAV

    filename to icon

    works with fugue icons, but can be custumized
    PHP 1 views posted 10 years ago by renaars
  25. FAV

    get a list of files ordered by upload time

    This is another way to get a list of files ordered by upload time.
    PHP saved by 2 people 2 views posted 10 years ago by fackz
  26. FAV

    Save files names in array

    without scandir() function
    PHP 0 views posted 10 years ago by stancox
  27. FAV

    count files in a given dir

    count files in a given dir
    PHP saved by 2 people 1 views posted 10 years ago by fackz
  28. FAV

    Get List of Files in Directory

    Like python's os.listdir
    PHP saved by 4 people 2 views posted 10 years ago by iloveitaly
  29. FAV

    Pagination for html files (split into multiple)

    For a client I needed a bit of code that could split one file (html, editable through wysiwyg editor) to multiple files, since all files would by default become very long. This code splits one file by the <h1> tag. Easy for end-users to set. Use CSS...
    PHP 1 views posted 10 years ago by axtg
  30. FAV

    Script to delete files in a directory (X days old)

    delete all files in a directory that are more than 7 days old.
    PHP saved by 4 people 3 views posted 10 years ago by fackz
« Prev 1 2