PHP Table Class





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

« Previous 1 2 3 4 5 6 7 8 9  ...  13 14 Next »
0
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 ".."
0
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.
0
Date Submitted Wed. Oct. 29th, 2008 11:26 AM
Revision 1
Helper Celebhir
Tags Directory | File | PHP | Recursive | search
Comments 0 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 "..".
1
Date Submitted Tue. Nov. 4th, 2008 8:32 AM
Revision 1
Beginner cicero
Tags identify | Key | PHP | Random | unique
Comments 1 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.
5
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)
1
Date Submitted Fri. Aug. 25th, 2006 3:41 AM
Revision 1
Helper Cyber-Drugs
Tags ??? | else | function | if | phpcode | return
Comments 0 comments
The below is an old bit of code I threw together when I was developing a Friend Networking site back in 2001. The site didn't last all that long, but I did manage to save all the handy snippets I used in it.

Below is code, which will return the age of somebody, when you parse their date of birth to it. I will probably make a cleaner version of the code at a later date and share it with everyone here.
2
Date Submitted Fri. Aug. 25th, 2006 3:44 AM
Revision 1
Helper Cyber-Drugs
Tags ??? | function | implode | phpcode | return | unset | while
Comments 0 comments
Below is a bit of code, which I needed to make when creating an application which did a lot of file manipulation. If you ever want to load the contents of a file, but remove X amount of lines from the end of the file, use the function below.
5
Date Submitted Fri. Aug. 25th, 2006 3:50 AM
Revision 1
Helper Cyber-Drugs
Tags ??? | die | if | mysql_connect | mysql_error | phpcode
Comments 0 comments
Below is a very simple bit of code you can use to test a MySQL Database Connection.
5
Date Submitted Fri. Aug. 25th, 2006 3:55 AM
Revision 1
Helper Cyber-Drugs
Tags ??? | phpcode
Comments 0 comments
Before any wars start, I want to clarify that the code below is NOT my own code, but unfortunately I am uncertain where I obtained it from. The code below basically create dynamic thumbnails of an image, you parse the following to it:

Image location,
Maximum Width
Maximum Height

It will then scale your image down, please do not confuse this with converting your image into a square, or whatever shape you are after. The code below will maintain aspect ratio of your image, and will use the values you parse as a guidline. Extremely handy when you are building gallery websites.
9
Date Submitted Fri. Aug. 25th, 2006 3:58 AM
Revision 1
Helper Cyber-Drugs
Tags ??? | mysql_escape_string | phpcode
Comments 0 comments
The below may be a simple line of code, but it is extremely useful to help prevent SQL Injection. There are many other methods, such as removing certain values from your string, but this is by far superior, as it does not limit what can be inserted to your database.
« Previous 1 2 3 4 5 6 7 8 9  ...  13 14 Next »