File splitter
9
Copy a file to a new location, optionally marking the file as a temporary file (to be deleted on application exit).
Note there are issues for temporary files - not all the parent directories that might be created are guaranteed to be deleted - only the immediate parent directory will be deleted on exit if created. Other higher-level directories will not be deleted, even if the file is marked as temporary.
Note there are issues for temporary files - not all the parent directories that might be created are guaranteed to be deleted - only the immediate parent directory will be deleted on exit if created. Other higher-level directories will not be deleted, even if the file is marked as temporary.
9
Get File Size
9
Change the case of an array.
10
This simple function will check if a url is valid (going by parse_url()) and if it's 'online' - by seeing if it returns a 302, 301, or 200 status code.
10
How Long Has It Been Since a Certain Date?
10
The below code will generate a form dropdown for all the days of the month, with today's day selected. Handy for those date pickers!
10
Here is a pair of function to use in combination. The first one will change newlines into tags to store into a database. The second one does the reverse so you can edit the content of the database without having the tags show when you edit the content. If you can find improvements or have comments please let me know
10
Give this little function a start date and number of days and it will calculate the end date.
10
I'm trying to load an object into a session variable.
10
A function that will either read a file or read a string, and parse a random line from it. Very simple.









