Here you'll find a quick reference of scripts and snippets in many different languages to help you with your programing.
| PHP Scripts |
Create Select From Set Field |
This class will create a select box from a database set field type. It will take the |
getDirNamesAsArray() |
Get a list a directories in a path and returns them as an array. |
getFileSizeFormatted() |
This functin will convert the file size in bytes to KB or MB. |
Simple Banner Rotator |
This script will randomly rotate ad banners to be placed on your site. |
Basic Authentication |
The script allows you to add basic authentication to your web site or scrpt. |
limitWords() |
This function works like strpad but with words. It will take $string and show only $limit number |
calculatePoints() |
This function takes the calories, fat in grams and dietary fiber grams and calculates the weight watchers |
emailHtml() |
This function will allow you to send an e-mail in html format. It's been test with Linux |
validateEmail() |
This function will return true if it is a valid address, and false if it is invalide
|
PHP Syntax Highlight |
The reason I liked this method of highlighting php syntax instead of using the php built-in function |
detectAddURLsLinks() |
This function looks at a string, detects e-mails and urls and replaces them with link tags. |
selectYear() |
This function creates a select box populated with 5 past years, current year, and 5 future years. |
monthSelect() |
This function produces a month select box. When the $month value is set the select box will |
limitStr() |
This function takes a string of a certain length and cuts it at the limit value and |
emailHtml() |
This function can be used to send e-mails from your website. It can be used to send |
detailsButton() |
This function creates a flat boarded button. The link target and width of the button are optional |
|
|
note:
If you'd like to become a 'Tutorial', 'Code Library', and Article contributor,
register with an account and
contact me for further instructions.
Contributors with quality tutorials, code snippets, scripts, and/or articles are welcome.