Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged files



« Prev 1 2
List only certain files in a folder with PHP Lists only certain files extensions as links on a page from a defined folder
0 3402 posted 6 years ago by martinbrait
php list all files of a given directory
0 3243 posted 6 years ago by martinbrait
php list files and directories beginning with .... 1 paramètre d'entrée
0 1697 posted 6 years ago by martinbrait
The following technical tip shows how php developers can protect their word documents in cloud using Aspose for Cloud SDK in php.
0 1795 posted 11 years ago by johansonkatherine
Count number of files on a ftp server
0 1566 posted 11 years ago by Sadeveloper
Lists only certain files extensions as links on a page from a defined folder
1 2808 posted 12 years ago by kidmizere
A handy function to get the contents of a file with curl. Accepts $_path as a parameter.
1 2255 posted 12 years ago by o0110o
This function will use curl to see if a file exists at the location it's provided. It accepts $_path as a parameter.
1 2438 posted 12 years ago by o0110o
A function to get a files size via curl. Accepts $_path, $_unit, $_float, $_username & $_password; In the listed order.
1 2435 posted 12 years ago by o0110o
List all files in a diretory with glob
0 1430 posted 13 years ago by pruntrut
Get file extension from it's name or complete path
2 1476 posted 13 years ago by fawazcb
wp_conditional css files loading
0 1072 posted 13 years ago by nWidart
0 1090 posted 14 years ago by soup
0 950 posted 14 years ago by sedgemonkey
0 917 posted 14 years ago by noelj
run this from plugins/emotions and copy/paste the output to emotions.htm
0 1320 posted 14 years ago by hamsterbacke82
Counts the number of times that a file has been downloaded, using PHP and mySQL
0 939 posted 14 years ago by eme_dlr
Returns an array of files that match a search term in a certain directory.
1 1047 posted 14 years ago by mattkenefick
Loops through all files of a certain extension in the specified directory. Can be used to list all images in a given directory.
0 1255 posted 15 years ago by sandman7OR
This example shows how to delete specific files after a given time span. This works good for cleaning cached files.
1 1079 posted 15 years ago by fackz
Delete a directory including its contents.
0 1028 posted 15 years ago by jrobinsonc
works with fugue icons, but can be custumized
0 1011 posted 15 years ago by renaars
This is another way to get a list of files ordered by upload time.
1 1531 posted 15 years ago by fackz
without scandir() function
0 1003 posted 15 years ago by stancox
count files in a given dir
2 1255 posted 16 years ago by fackz
Like python's os.listdir
1 1378 posted 16 years ago by iloveitaly
For a client I needed a bit of code that could split one file (html, editable through wysiwyg editor) to multiple files, since all files would by default become very long. This code splits one file by the <h1> tag. Easy for end-users to set. Use CSS...
0 1227 posted 16 years ago by axtg
delete all files in a directory that are more than 7 days old.
4 1596 posted 16 years ago by fackz
« Prev 1 2