Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged file



« Prev 1 2 3 4
Code to upload a file in PHP
0 1304 posted 5 years ago by devquora
Set headers for file download
0 734 posted 6 years ago by macodev
General file upload script in php. Error set using SESSIONS.
0 997 posted 7 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 759 posted 10 years ago by apphp-snippets
simple php file uploader with check for file extension and size.
0 770 posted 10 years ago by codingforever99
Generate a generic file comment
0 623 posted 10 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 792 posted 10 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 569 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 986 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 704 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 913 posted 11 years ago by apphp-snippets
Image file upload, javascript
0 635 posted 11 years ago by laxman2021
This SSH API is used to execute remote commands, send and receive files.
0 584 posted 11 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 613 posted 11 years ago by VisionHive
This function removes a directory and its contents. Use with careful, no undo!
1 712 posted 11 years ago by fackz
list all files in directory and subdirectory
1 766 posted 11 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 820 posted 11 years ago by crypticsoft
Getting files, folders, file count, folder count in a directory with php and writing them to a web page
1 1226 posted 12 years ago by duzenz
0 818 posted 12 years ago by Heol
Writes to a text file, test.txt, instead of email for the purposes of testing.
0 565 posted 12 years ago by hotdiggity
0 626 posted 12 years ago by antti
get file extension
0 429 posted 12 years ago by BilalELMoussaoui
0 614 posted 12 years ago by nebojsac
Resize and image to fit a predetermined canvas size
0 790 posted 12 years ago by flatearthcomms
0 513 posted 12 years ago by TioSolid
1 581 posted 12 years ago by Envo
« Prev 1 2 3 4