Welcome To Snipplr
Everyone's Recent Snippets Tagged file
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Python
Replace procedural Nuke Write paths with real paths in write node by replacing the write node(s)
This allows you to take a node that has expressions in it and create copies of them that are hard pathed. It will also disable said expression driven write nodes and disable them.
0
862
posted 11 years ago by throb
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
734
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
1164
posted 11 years ago by apphp-snippets
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
804
posted 12 years ago by VisionHive
iconv -l to show all available encodes, replace xxx with you file ext
0
814
posted 12 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
1271
posted 12 years ago by ShaneGowland
This function removes a directory and its contents.
Use with careful, no undo!
1
910
posted 12 years ago by fackz
Run This Command in your Terminal
----------------------------------------
mysql -u **username** -p -h localhost **DATA-BASE-NAME** < data.sql
0
829
posted 12 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
1197
posted 12 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
1040
posted 12 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
731
posted 12 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
1584
posted 12 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
1097
posted 12 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
2177
posted 13 years ago by burnandbass