Reverse register_globals
12
Don't know if anyone will find this handly, but here's a CSS processor that I wrote that allows me to nest CSS Blocks, and various other things, making for an easier to maintain CSS file.
Warning: I'd recommend caching the results since I didn't have a need to optomize it for speed.
Things that it includes:
*Nested CSS Rules
*Removes Whitespace
*Allows for // comments
*Removes comments (so put them in at no cost)
Please let me know what you think
Warning: I'd recommend caching the results since I didn't have a need to optomize it for speed.
Things that it includes:
*Nested CSS Rules
*Removes Whitespace
*Allows for // comments
*Removes comments (so put them in at no cost)
Please let me know what you think
13
This is a simple function that resizes and image using the GD add on for PHP.
Just a disclaimer: I know its not perfect, but i figured i would post it because the only other one on here is way confusing to some new PHP developers. Hopefully this one will help you learn how to use GD, and then you can write a better one.
Just a disclaimer: I know its not perfect, but i figured i would post it because the only other one on here is way confusing to some new PHP developers. Hopefully this one will help you learn how to use GD, and then you can write a better one.
12
With this function you can calculate the age of a person
Example:
echo "Age is: " . age("1984-07-05");
Result will be (23 Feb 2005) = "Age is: 20"
Example:
echo "Age is: " . age("1984-07-05");
Result will be (23 Feb 2005) = "Age is: 20"
-6
Get the count of records from DB
7
Generate multi select box from data in db, then when submitted, each selection is written to a db table as it's own record, each tied together by a common record id.
14
Display contents of a folder, see comments in code.
6
Pull items from a mysql db table and display in the following format-
item1, item2, item3
In the example code, the query will return all items that have the color "red" specified in the db.
item1, item2, item3
In the example code, the query will return all items that have the color "red" specified in the db.
14
Simple chatting script to be placed on a corner of a website 
Also a good example how to use ajax.

Also a good example how to use ajax.
9
Mass email list of email addresses from a mysql db table.
19
This function makes URLs in a given text clickable, and shorts down the link text if it's length is over the specified one. (Like vBulletin, etc... does)
PS:
Please explain negative votes, they're pointless otherwise...
PS:
Please explain negative votes, they're pointless otherwise...









