Welcome To Snipplr
Everyone's Recent Snippets Tagged file
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1837
posted 13 years ago by tacudtap
This snippet allows you set a limitation for download rate of the file that visitors download from your site.
1
4275
posted 13 years ago by apphp-snippets
This code allows to pass filename in the $file_name variable and function will return file extension only.
0
2122
posted 13 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
3376
posted 13 years ago by apphp-snippets
This SSH API is used to execute remote commands, send and receive files.
0
2019
posted 13 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
1700
posted 14 years ago by VisionHive
iconv -l to show all available encodes, replace xxx with you file ext
0
1925
posted 14 years ago by rabc
The .NET Framework doesn't support automatic detection of character encoding in the default file I/O methods. This is a quick function that returns True in the specified file is Unicode.
0
5010
posted 14 years ago by ShaneGowland
This function removes a directory and its contents.
Use with careful, no undo!
1
2244
posted 14 years ago by fackz
Run This Command in your Terminal
----------------------------------------
mysql -u **username** -p -h localhost **DATA-BASE-NAME** < data.sql
0
1886
posted 14 years ago by MohamedAlaa
This is a batch file that will add the date to the end of all files in a particular directory located on the user's desktop and place them in a directory called Output_Renamed on the user's desktop.
2
4585
posted 14 years ago by _reydin_
Note: This also uses a flat file to cache the results, be sure to also upload the 'rss_cache.txt' file.
Usage:
<?php>
0
2114
posted 14 years ago by crypticsoft
Projecto de LabP01 que consiste na criação de uma classe que permite efectuar operações sobre ficheiros de texto.
0
1593
posted 14 years ago by N-genhocas
Getting files, folders, file count, folder count in a directory with php and writing them to a web page
1
4308
posted 14 years ago by duzenz
Checks to make sure the file is a valid image file, checks max file size, and directory write permissions, requires 'fileutils' gem.
2
4186
posted 14 years ago by kellishaver
Use this class to create a simple upload-to-flash button. Select image from your local harddrive and upload it in flash, later you can get is as Bitmap() object
All images are stored in static array, so you can retrive it anywhere you want in your c...
1
3758
posted 14 years ago by burnandbass