Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged file



« Prev 1 2 3 4
Code to upload a file in PHP
0 157 posted 1 year ago by devquora
Set headers for file download
0 81 posted 3 years ago by macodev
General file upload script in php. Error set using SESSIONS.
0 111 posted 4 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 78 posted 6 years ago by apphp-snippets
simple php file uploader with check for file extension and size.
0 76 posted 6 years ago by codingforever99
Generate a generic file comment
0 63 posted 6 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 77 posted 6 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 52 posted 7 years ago by tacudtap
This snippet allows you set a limitation for download rate of the file that visitors download from your site.
1 114 posted 7 years ago by apphp-snippets
This code allows to pass filename in the $file_name variable and function will return file extension only.
0 88 posted 7 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 115 posted 7 years ago by apphp-snippets
Image file upload, javascript
0 56 posted 7 years ago by laxman2021
This SSH API is used to execute remote commands, send and receive files.
0 55 posted 7 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 73 posted 7 years ago by VisionHive
This function removes a directory and its contents. Use with careful, no undo!
1 74 posted 7 years ago by fackz
list all files in directory and subdirectory
1 87 posted 7 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 67 posted 7 years ago by crypticsoft
Getting files, folders, file count, folder count in a directory with php and writing them to a web page
1 202 posted 8 years ago by duzenz
0 151 posted 8 years ago by Heol
Writes to a text file, test.txt, instead of email for the purposes of testing.
0 62 posted 8 years ago by hotdiggity
0 55 posted 8 years ago by antti
get file extension
0 38 posted 8 years ago by BilalELMoussaoui
0 73 posted 8 years ago by nebojsac
Resize and image to fit a predetermined canvas size
0 75 posted 8 years ago by flatearthcomms
0 59 posted 9 years ago by TioSolid
1 66 posted 9 years ago by Envo
« Prev 1 2 3 4