Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged file
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1006
posted 10 years ago by apphp-snippets
simple php file uploader with check for file extension and size.
0
1006
posted 11 years ago by codingforever99
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
740
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
1390
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
913
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
1169
posted 11 years ago by apphp-snippets
This SSH API is used to execute remote commands, send and receive files.
0
807
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
Note: This also uses a flat file to cache the results, be sure to also upload the 'rss_cache.txt' file.
Usage:
<?php>
0
1047
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
1590
posted 12 years ago by duzenz
Writes to a text file, test.txt, instead of email for the purposes of testing.
0
748
posted 13 years ago by hotdiggity