Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged file



« Prev 1 2 3 4
  1. FAV

    Code to upload a file in PHP

    Code to upload a file in PHP
    PHP 13 views posted 1 year ago by devquora
  2. FAV

    Download file headers

    Set headers for file download
    PHP 9 views posted 2 years ago by macodev
  3. FAV

    Php File Upload Script

    General file upload script in php. Error set using SESSIONS.
    PHP 17 views posted 3 years ago by aravindnair93
  4. FAV

    Remove File Extention from URLs in .htaccess

    This example shows you how to remove file extension from URLs using .htaccess file directives. Remember, that "mod_rewrite" works only on Apache server. Before trying please be sure that you are working on Apache server and the "mod_rewrite" module/e...
    PHP 10 views posted 6 years ago by apphp-snippets
  5. FAV

    Upload files or Images using PHP

    simple php file uploader with check for file extension and size.
    PHP 16 views posted 6 years ago by codingforever99
  6. FAV

    Sublimee Snippet: Fic

    Generate a generic file comment
    PHP 7 views posted 6 years ago by brownrl
  7. FAV

    If file exists function - server-side

    This function can be used to check if a file exists using the HTTP header response. Example use, when looping through cached JSON objects (instagram API, etc.)
    PHP 10 views posted 6 years ago by rickygri
  8. FAV

    Disable the WordPress file editor.

    Add this snippet to `wp-config.php` to remove the file editor links from the WordPress admin menus. Read more about... [disabling the WordPress file editor](http://www.orderofbusiness.net/blog/disable-wordpress-file-editor/)
    PHP 10 views posted 6 years ago by tacudtap
  9. FAV

    Download File with a Speed Limit in PHP

    This snippet allows you set a limitation for download rate of the file that visitors download from your site.
    PHP saved by 3 people 15 views posted 6 years ago by apphp-snippets
  10. FAV

    Get File Extension in PHP

    This code allows to pass filename in the $file_name variable and function will return file extension only.
    PHP 6 views posted 6 years ago by apphp-snippets
  11. FAV

    Get File Path Data in PHP

    You may retrieve all needed file path data using PHP's built-in function pathinfo. You don't need to create your own functions or use regular expressions to get this info. It was already been created for this purpose.
    PHP 9 views posted 7 years ago by apphp-snippets
  12. FAV

    Javascript : Validate file upload

    Image file upload, javascript
    PHP 8 views posted 7 years ago by laxman2021
  13. FAV

    PHP SSH API class

    This SSH API is used to execute remote commands, send and receive files.
    PHP 7 views posted 7 years ago by ryantxr
  14. FAV

    Find a file (including subdirectory search)

    This function searches the current working directory (or any other directory path that you specify with parameter $p) for a file, named $f, and returns the full path and filename of the first occurrence, or false if it is either not found or the maxi...
    PHP 7 views posted 7 years ago by VisionHive
  15. FAV

    How to Remove Directories Recursively with PHP - updated method

    This function removes a directory and its contents. Use with careful, no undo!
    PHP saved by 1 person 6 views posted 7 years ago by fackz
  16. FAV

    list all files in directory

    list all files in directory and subdirectory
    PHP saved by 3 people 14 views posted 7 years ago by ne7son
  17. FAV

    RSS Feed Caching

    Note: This also uses a flat file to cache the results, be sure to also upload the 'rss_cache.txt' file. Usage: <?php>
    PHP 7 views posted 7 years ago by crypticsoft
  18. FAV

    Getting files, folders, file count, folder count in a directory with php

    Getting files, folders, file count, folder count in a directory with php and writing them to a web page
    PHP saved by 3 people 25 views posted 8 years ago by duzenz
  19. FAV

    File Download (with file_put_contents)

    PHP 14 views posted 8 years ago by kairy2k9
  20. FAV

    Delete directory and its content recursively

    PHP 4 views posted 8 years ago by spcmnk
  21. FAV

    Get file size from URL

    PHP 11 views posted 8 years ago by Heol
  22. FAV

    Test PayPal ipn to file

    Writes to a text file, test.txt, instead of email for the purposes of testing.
    PHP 4 views posted 8 years ago by hotdiggity
  23. FAV

    Get filename without extension

    PHP 8 views posted 8 years ago by antti
  24. FAV

    Obtener fichero de un dir con nombre parcial

    PHP 5 views posted 8 years ago by dato
  25. FAV

    get file extension

    get file extension
    PHP 5 views posted 8 years ago by BilalELMoussaoui
  26. FAV

    Get date file was last updated / uploaded

    PHP 5 views posted 8 years ago by sjacunningham
  27. FAV

    Get Directory List PHP

    PHP 6 views posted 8 years ago by nebojsac
  28. FAV

    File upload: Resize image and reposition on new canvas

    Resize and image to fit a predetermined canvas size
    PHP 7 views posted 8 years ago by flatearthcomms
  29. FAV

    Uploading Files in Magento

    PHP 5 views posted 8 years ago by TioSolid
  30. FAV

    Get file extension

    PHP saved by 3 people 8 views posted 8 years ago by Envo
« Prev 1 2 3 4