
|
Home > Code snippets > PHP Code Snippets from Category PHPDisplay code snippets from subcategory: Arrays (1), Strings (3), Files (2) Various validation classThis is yet again a small class i wrote (still working on it) that validates some input data (not perfect tho, i know, but im still working on it). File operations class (still under progress)This is a small class i have been writing to perform several file operations. for now only list files on a single directory and the same but recursively. I will keep improving it and modifying this one here as I work on it. Validate file extension (smaller code)this is a file extension validation snipped i wrote some days ago, is smaller than the existing one here, and works really fine, it uses a small regex for the comparison and it does requires the . on the ext. Nice error handleing for dev and liveA nice way to display errors when your on your dev area, Cookie ClassCookie Class Removing Register Globals and Magic QuotesIf you are in the situation where you can not control is register globals are on or if magic quotes are on you need an easy way to remove them. Luckily with a single include file you can remove these items. Whether you are transitioning away from them or are on a host where you can not turn them off this will help you to ensure that the variables are cleaned out. Got one? Create it now. View the most popular snippets.
|
||||||||||||
|
PHPEdit User Community, © 2008 WaterProof SARL
|
||||||||||||