ASPit - Totally ASP JSit - Totally JavaScript
Search PHPit

Use this textbox to search for articles on PHPit. Seperate keywords with a space.

Advertisements


Get current datestamp

Friday, April 2nd, 2004

With this function you can easily retrieve the current date stamp. Very useful for comparing it with data from a MySQL database.

Encode e-mail address

Friday, April 2nd, 2004

Use this handy function to encode e-mail addresses so it still looks good to humans, but can’t be read by (spam) bots.

Crop sentence

Friday, April 2nd, 2004

Use this handy function, written by David Speake, to crop a sentence to a certain length. This function makes sure the words don’t get broken up in the middle.

Sort array alphabetically

Friday, April 2nd, 2004

This function, used in conjunction with the usort() function, allows you to sort a n array alphabetically, e.g. usort($feeds, “cmp”);

Get month name

Friday, April 2nd, 2004

This function changes a numerical month (e.g. 3) into the name of that month (e.g. March).

Javascript Redirect

Friday, April 2nd, 2004

With this function you can easily redirect to another page, after a certain amount of time (in seconds).

Javascript GoBack

Friday, April 2nd, 2004

This function can be used to redirect to the previous page, after a certain amount of time (in seconds).

Valid ID

Friday, April 2nd, 2004

This very short, but useful, codesnippet allows you to quickly validate a numeric ID, often used in a database table.