Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged file



« Prev 1 2 3 4
Code to upload a file in PHP
0 1575 posted 6 years ago by devquora
Set headers for file download
0 911 posted 7 years ago by macodev
General file upload script in php. Error set using SESSIONS.
0 1225 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 1003 posted 10 years ago by apphp-snippets
simple php file uploader with check for file extension and size.
0 1003 posted 11 years ago by codingforever99
Generate a generic file comment
0 850 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 1044 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 733 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 1386 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 909 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 1163 posted 11 years ago by apphp-snippets
Image file upload, javascript
0 826 posted 11 years ago by laxman2021
This SSH API is used to execute remote commands, send and receive files.
0 800 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 803 posted 12 years ago by VisionHive
This function removes a directory and its contents. Use with careful, no undo!
1 909 posted 12 years ago by fackz
list all files in directory and subdirectory
1 973 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 1039 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 1584 posted 12 years ago by duzenz
0 1046 posted 13 years ago by Heol
Writes to a text file, test.txt, instead of email for the purposes of testing.
0 743 posted 13 years ago by hotdiggity
0 837 posted 13 years ago by antti
get file extension
0 575 posted 13 years ago by BilalELMoussaoui
0 789 posted 13 years ago by nebojsac
Resize and image to fit a predetermined canvas size
0 985 posted 13 years ago by flatearthcomms
0 682 posted 13 years ago by TioSolid
1 751 posted 13 years ago by Envo
« Prev 1 2 3 4