Navigation Home / Tags / PHP

ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 7 8 9  ...  14 15 Next »
-12
Date Submitted Mon. Oct. 9th, 2006 7:29 AM
Revision 1
Helper BrandonReese
Tags MD5 | Password | PHP | Random
Comments 5 comments
This is a quick and easy method to generate a somewhat random password. This simply generates the MD5 hash for the integer returned by the time() function and then truncates it to the specific length.
11
Date Submitted Thu. Nov. 16th, 2006 5:30 AM
Revision 1
Helper Celebhir
Tags characters | PHP | split | String
Comments 0 comments
Function that splits a given string into sections based on the allowed length for a section. Does not split words up. Splits string on Space character (can be set to another character)
3
Date Submitted Wed. Oct. 29th, 2008 9:21 AM
Revision 1
Helper Celebhir
Tags Directory | Files | PHP | Recursive | structure | tree
Comments 0 comments
Takes a given directory and lists all the files and folders under it, including sub folders. Resulting array contains associative (folders) and indexed (files) elements. Doesn't return "." and ".."
4
Date Submitted Wed. Oct. 29th, 2008 10:51 AM
Revision 1
Helper Celebhir
Tags Directory | find | Folder | PHP | Recursive | search
Comments 1 comments
This function takes a directory, and a "folder" search parameter.
If it finds the directory (either in single level, or any sub folder) it will return the relative path of that folder. "FALSE" if not found. Skips over files and "." and ".." directories. Recursive by default.
4
Date Submitted Wed. Oct. 29th, 2008 11:26 AM
Revision 1
Helper Celebhir
Tags Directory | File | PHP | Recursive | search
Comments 1 comments
This function tries to locate a file in a give folder (either single level, or in any sub folder). Returns the relative file and path, or FALSE if not found. Skips over "." and "..".
3
Date Submitted Fri. May. 15th, 2009 9:14 AM
Revision 1
Beginner ChronoFish
Tags Array | parser | PHP | XML | XML2Array | XMLToArray
Comments 1 comments
Here is a my latest refinement of an XML2Array function. It creates an associative array where tags are the keys. When tags have attributes, it becomes part of the key (optionally). The values of the resultant array is itself an array of values OR another XML2Aarray array.

- Enjoy
4
Date Submitted Tue. Nov. 4th, 2008 8:32 AM
Revision 1
Beginner cicero
Tags identify | Key | PHP | Random | unique
Comments 3 comments
This php script provides a unique random key with 32 characters and can be used to avoid the system to pass some primary keys across the url, by example.
4
Date Submitted Mon. Jul. 13th, 2009 3:05 AM
Revision 1
Scripter Cloudgen
Tags absolute | File | include | Path | PHP
Comments 0 comments
One of the simlest way to include a php file using absolute path
4
Date Submitted Mon. Jul. 13th, 2009 3:08 AM
Revision 1
Scripter Cloudgen
Tags Extension | File | filename | PHP | script
Comments 0 comments
This simple script can be used to get the script filename and extensio
7
Date Submitted Wed. Oct. 11th, 2006 7:58 AM
Revision 1
Scripter ctiggerf
Tags PHP | String
Comments 3 comments
Two very usefull functions to have around.

(note: dollarfy requires commify to work)
« Previous 1 2 3 4 5 6 7 8 9  ...  14 15 Next »