Profile
Achievement
gdvickery's Recent Snippets
- All /
« Prev 1 Next »
Dumps the contents of a mysql database to a .sql file named by the current date.
0
789
posted 14 years ago by gdvickery
This function takes a list of string and sorts them based on their similarity. The percent at which they match can be defined in the second parameter (default 75%).
0
1022
posted 14 years ago by gdvickery
This command will count the number of files in the given directory and sub-directories.
0
1374
posted 14 years ago by gdvickery
This is a function that will show a progress bar of the given percentage. Useful when performing time consuming tasks.
1
1014
posted 14 years ago by gdvickery
Connects to a web page, reads in the content and strips whitespace.
2
932
posted 15 years ago by gdvickery
These 4 lines of code can be used to extract and return all links from any page using regex patterns. If links are found, an array is returned, else boolean false is returned.
4
1309
posted 15 years ago by gdvickery
This method is a bit faster and more reliable then using the "explode" method. Works with PHP 4.0.3 and up.
4
957
posted 15 years ago by gdvickery