Nested Drop Down Select Box (Tree View)





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

« Previous 1 2 3 4 5 6 7 8 9  ...  15 16 Next »
15
Date Submitted Mon. Oct. 9th, 2006 3:13 PM
Revision 1
Helper inxilpro
Tags classes | Database | DB | PHP | Simple
Comments 5 comments
This is a bare-bones DB connectivity class. It's really just meant to abstract a few basic mysql_ functions so that if you ever have to change DBs you don't have to change every database function call.

I really just threw this together on a whim with no testing what-so-ever. Also, it only abstracts the most basic MySQL functions--this is intentional; please expand it as you see fit.
15
Date Submitted Mon. Oct. 9th, 2006 9:57 PM
Revision 1
Helper inxilpro
Tags Convert | CSV | PHP | XML
Comments 1 comments
This function converts a CSV file to a simple XML file.
19
Date Submitted Mon. Oct. 9th, 2006 10:39 PM
Revision 1
Helper inxilpro
Tags "Random Generation" | Generator | Password | PHP | Random
Comments 2 comments
This function creates relatively secure random passwords. It's by no means ideal, but it should work in most non-critical situations. The nice thing is the generator attempts to create passwords that people can pronounce and chooses letters that won't be mistaken for others (such as the numeral "1", an upper-case "i" and a lower-case "L"). To keep the code short much of this functionality is very rudimentary, but it's better than nothing.
14
Date Submitted Fri. Jan. 19th, 2007 2:37 PM
Revision 1
Helper inxilpro
Tags "word list" | Generator | Password | PHP | Random
Comments 0 comments
This is a random password generator that produces understandable passwords based on word lists. I've only included a 3 entry world list because you should chose a list based on your password requirements and your users. If you need to generate passwords that are 14 characters in length, you will want a different list than if you're generating 8 character passwords. And depending on your users, you may want to use certain lists. The list I use is about 4000 words that are 5-7 characters long, all well-known words that have had potentially objectionable content removed. For security reasons I don't want to include this list.

A note on security: though this generates relatively strong passwords for the average user, they are particularly susceptible to brute-force attacks. This is even more an issue if somehow your word list gets compromised. I would not recommend using this function for anything where a highly secure password is needed.

A note on choosing your list: You'll also see that I've built the system to avoid generating passwords with zeros and ones in them. This is because zero and upper-case "o" can be confused as can one, lower-case "L" and upper-case "i." When choosing my word list I was also sure to strip out all words that start with the letter "o" or "i" (to prevent the optional ucfirst() from creating 0/O and I/1 confusion) and words that contain the letter "L" (to prevent l/1 confusion). I find that this greatly helps with preventing confusion, but again weakens the security of the passwords some. It's your choice.
13
Date Submitted Mon. Oct. 23rd, 2006 10:19 PM
Revision 1
Helper jdenton
Tags Calendar | Date | days | PHP
Comments 0 comments
daysBeteenDates will calculate the number of days between 2 dates in the form of 'YYYY-MM-DD'.
5
Date Submitted Mon. Oct. 23rd, 2006 10:48 PM
Revision 1
Helper jdenton
Tags GD | gif | images | jpeg | PHP | png | Resize
Comments 1 comments
The resize_image function allows you to resize a GIF, JPEG or PNG file to any dimension you wish and put an optional black border around the image. Here's an explanation of the arguements:

$image_path: The complete path to the image to be resized

$max_width: Maximum width of the resized image. Leave 0 if you want to specify only the height and have the width auto-scale.

$max_height: Maximum height of the resized image. Leave 0 if you want to specify only the width and have the height auto-scale.

$file_prefix: This will prepend a string onto the resized image filename. If you want to create a thumbnail image and keep the original, set $file_prefix = 'thumb'.

$dir: Allows you to save the resized image to a sub directory under the $image_path directory. If you want to save thumbnail images to images/thumbs, set $dir = 'thumbs'.

$border: boolean, 1 = border, 0 = no border

$mime: Image mime type. (image/jpeg, image/gif, image/png)
10
Date Submitted Mon. Dec. 4th, 2006 11:03 PM
Revision 1
Helper jdenton
Tags "date convert" | PHP
Comments 0 comments
Give this little function a start date and number of days and it will calculate the end date.
28
Date Submitted Tue. Nov. 8th, 2005 4:53 AM
Revision 1
Beginner jelena
Tags Image | PHP | Thumbnail
Comments 8 comments
Create a Thumbnail
3
Date Submitted Tue. Nov. 8th, 2005 8:56 PM
Revision 1
Beginner jpeck
Tags Convert | CPlusPlus | HTML | Text
Comments 0 comments
Text to HTML Converte
12
Date Submitted Sun. Sep. 24th, 2006 5:43 PM
Revision 1
Helper kahotep
Tags HTML | PHP
Comments 6 comments
Generates select boxes, text boxes, check boxes and radio buttons. Via a handful of functions.
« Previous 1 2 3 4 5 6 7 8 9  ...  15 16 Next »