Chatterbox2





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

« Previous 1 2  ...  18 19 20 21 22 23 24 25 26 Next »
11
Date Submitted Sun. Sep. 17th, 2006 9:05 AM
Revision 1
Helper ffxfiend
Tags "images" | PHP | phpcode
Comments 3 comments
You can use this function to dynamically generate html "width/height" for use with displaying a thumbnail image usingthe original image. This will help save in making dup images just for display as a thumbnail.

It takes two arguments, the path to where the image is stored and the desired width or height.

Please comment or improve this code .
10
Date Submitted Mon. Sep. 18th, 2006 7:26 PM
Revision 1
Helper ffxfiend
Tags mysql | PHP
Comments 0 comments
Here is a pair of function to use in combination. The first one will change newlines into tags to store into a database. The second one does the reverse so you can edit the content of the database without having the tags show when you edit the content. If you can find improvements or have comments please let me know
26
Date Submitted Fri. Sep. 22nd, 2006 7:06 AM
Revision 1
Helper ffxfiend
Tags "Random Generation" | PHP | phpcode
Comments 5 comments
This is a simple function to generate a random ID of letters and numbers however long you want. All you do is pass it how many parts you want and then how many pieces(chars/numbers) per part you want.

I hope you enjoy
-11
Date Submitted Thu. Sep. 28th, 2006 3:43 PM
Revision 1
Helper ffxfiend
Tags "php" | PHP | phpcode | RegExp
Comments 1 comments
This is a faily simple function to validate a URL being passed into your scripts. It will allow for http, https, and ftp. The beginning www. of a URL is optional as well. It will also validate if you have an IP address in place of the domain name. I'm sure this can be improved upon as this is my first attempt at regular expressions but it has worked good for me so far. Please comment or improve if your able.

Thanks!
0
Date Submitted Mon. Dec. 29th, 2008 2:03 PM
Revision 1
Helper ffxfiend
Tags Date | future | PHP
Comments 0 comments
This function will take four arguments, the year, month, day and number of days in the future you want to go and return to you as an array (year,month,day) of that date.

It is a simple function that is only for convenience. It is meant to be used in conjunction with the list() command.
0
Date Submitted Mon. Dec. 29th, 2008 2:11 PM
Revision 1
Helper ffxfiend
Tags "find date" | Date | PHP
Comments 0 comments
This function will let you find the Sunday, Monday, Tuesday, etc of a month and return to you that date.

It is a modification of a script I found online at this site: http://filchiprogrammer.wordpress.com/2008/02/27/getting-the-first-monday-of-the-month/.

The function takes three arguments, the month, year and the weekday you are looking for. The weekday is represented by an integer, 0 for Sunday, 1 for Monday and so on.
5
Date Submitted Tue. Sep. 4th, 2007 2:13 PM
Revision 1
Helper explode
Tags mysql | PHP
Comments 0 comments
I made this script to delete any unneeded files from the server that weren't being used by the database. Of course you can expand this a lot more, but I cut it down a little to put it up here.
5
Date Submitted Tue. Sep. 4th, 2007 3:05 PM
Revision 1
Helper explode
Tags Class | mysql | PHP
Comments 0 comments
This is my MySQL database class that I use for all of my sites. Some included features are:
- Get execution time
- Error reporting (screen and email)
- SQL stats
5
Date Submitted Tue. Sep. 4th, 2007 4:51 PM
Revision 1
Helper explode
Tags Class | error | PHP
Comments 1 comments
A very simple error class that can be pretty handy.
4
Date Submitted Tue. Sep. 4th, 2007 5:21 PM
Revision 1
Helper explode
Tags "credit card" | Class | PHP
Comments 0 comments
This is a simple credit card validation class that you can check for most issues before you process you form through paypal, authorize.net, or anywhere else. This also uses my Simple Error Class, the error class is required for this.
« Previous 1 2  ...  18 19 20 21 22 23 24 25 26 Next »