Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged file



« Prev 1 2 3 4
Code to upload a file in PHP
0 1579 posted 6 years ago by devquora
Set headers for file download
0 919 posted 7 years ago by macodev
General file upload script in php. Error set using SESSIONS.
0 1229 posted 8 years ago by aravindnair93
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...
0 1004 posted 10 years ago by apphp-snippets
simple php file uploader with check for file extension and size.
0 1005 posted 11 years ago by codingforever99
Generate a generic file comment
0 854 posted 11 years ago by brownrl
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.)
0 1045 posted 11 years ago by rickygri
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/)
0 739 posted 11 years ago by tacudtap
This snippet allows you set a limitation for download rate of the file that visitors download from your site.
1 1388 posted 11 years ago by apphp-snippets
This code allows to pass filename in the $file_name variable and function will return file extension only.
0 912 posted 11 years ago by apphp-snippets
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.
0 1168 posted 11 years ago by apphp-snippets
Image file upload, javascript
0 830 posted 11 years ago by laxman2021
This SSH API is used to execute remote commands, send and receive files.
0 805 posted 12 years ago by ryantxr
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...
0 807 posted 12 years ago by VisionHive
This function removes a directory and its contents. Use with careful, no undo!
1 914 posted 12 years ago by fackz
list all files in directory and subdirectory
1 979 posted 12 years ago by ne7son
Note: This also uses a flat file to cache the results, be sure to also upload the 'rss_cache.txt' file. Usage: <?php>
0 1045 posted 12 years ago by crypticsoft
Getting files, folders, file count, folder count in a directory with php and writing them to a web page
1 1589 posted 12 years ago by duzenz
0 1050 posted 13 years ago by Heol
Writes to a text file, test.txt, instead of email for the purposes of testing.
0 748 posted 13 years ago by hotdiggity
0 842 posted 13 years ago by antti
get file extension
0 582 posted 13 years ago by BilalELMoussaoui
0 794 posted 13 years ago by nebojsac
Resize and image to fit a predetermined canvas size
0 991 posted 13 years ago by flatearthcomms
0 687 posted 13 years ago by TioSolid
1 753 posted 13 years ago by Envo
« Prev 1 2 3 4