Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged file



0 1677 posted 14 years ago by zealmurapa
simple pass the file name and that file will be available for download
0 2419 posted 14 years ago by kumar_sekhar
A flexible way to get the file name without the extension
0 2228 posted 14 years ago by donkeykong
This class can log messages to a file. If the log file becomes too large (over 1MB), the class will archive it and will create new. If there are archives older than one month, they will be deleted automatically. In the future versions I will add th...
0 1671 posted 14 years ago by stz184
There are a lot of recursive glob functions out there but they don't build a tree, they build a 1 dimensional array...This function builds a directory tree.
1 1422 posted 14 years ago by danoph
A simple one page form with attachment that is meant to go straight to the email and not uploaded to the server. Emails an HTML version, a PlainText version and the attachment if there is one.
4 2253 posted 15 years ago by StevenW721
0 1597 posted 15 years ago by dropthenerd
0 1251 posted 15 years ago by kendsnyder
Uploading multiple files at once used to be strictly in the realm of flash or required javascript to crate multiple upload forms as needed. The first method has the problems with the general incompatibility of flash. The second, well, it's a very low...
0 1879 posted 15 years ago by FatFolderDesigner
This was more of a go at learning the basics of OOP, however I decided to document it well in case anyone had any comments. Note: It only works with single files, no directory usage.
0 1267 posted 15 years ago by asdasDan
1 1608 posted 15 years ago by hamsterbacke82
A sample wrapper class around Zend_File_Transfer_Adapter_Http
0 1274 posted 15 years ago by nikefido
0 1314 posted 15 years ago by stz184
1 1499 posted 15 years ago by nveselinov
This is a simple 'text to array for output' script that I've used a few times for my clients. Hope you like!
0 1646 posted 15 years ago by chicagowebmanagement
0 1205 posted 15 years ago by lolindirfaelivrin
Given a string of a file name, return the extension
1 1612 posted 15 years ago by r4b87
1 1875 posted 15 years ago by mfigge
0 1102 posted 15 years ago by cschlens
Função muito boa criada por Sean Nall.
0 1049 posted 15 years ago by zitoloco
This set of headers works for me when I output file data from the database for the user to save or open.
0 2040 posted 15 years ago by bradless
0 1436 posted 15 years ago by bradless
Very simple to use. **Calling:** $files = dirContents(DIR_PATH, [FILTER, [TYPE]]); **Examples:** $files = dirContens("my-dir"); _$files_ is array containing all, both files either directories $files = dirContens("my-dir",...
0 1193 posted 15 years ago by Lostindream
Here is a function you can use to automatically set up a complex folder structure with a specified file mode. All you have to do is create the "root" directory and pass an array describing the folder structure you would like to create in it. If the d...
0 1257 posted 15 years ago by chlab
Quick basic way to serve a string or a file through PHP
0 1927 posted 16 years ago by cburyta
Class has simple interface to download any file from a server without displaying the location of the file.
2 2130 posted 16 years ago by Almorca
This function works correct with files with no extension.
0 1334 posted 16 years ago by kirik
provide file via URL var, and script will grab it & force download. Take a look at code, and add some of your filetypes if required
2 4362 posted 16 years ago by acosonic