Navigation Home / Tags / PHP

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

« Previous 1 2  ...  8 9 10 11 12 13 14 15 16 Next »
4
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.
4
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.
4
Date Submitted Thu. Oct. 18th, 2007 8:32 AM
Revision 1
Beginner Tr0y
Tags PHP
Comments 0 comments
Use this to print alternating values from an array.

It cycles through a series of values based on an iteration number.

For example, you could use this for alternating background colors.
4
Date Submitted Tue. Nov. 4th, 2008 8:32 AM
Revision 1
Beginner cicero
Tags identify | Key | PHP | Random | unique
Comments 3 comments
This php script provides a unique random key with 32 characters and can be used to avoid the system to pass some primary keys across the url, by example.
3
Date Submitted Tue. Sep. 4th, 2007 7:28 PM
Revision 1
Helper explode
Tags PHP | Random
Comments 1 comments
This little function does great for passwords, usernames, files, and anything else you need a random string for.
3
Date Submitted Wed. Oct. 29th, 2008 9:21 AM
Revision 1
Helper Celebhir
Tags Directory | Files | PHP | Recursive | structure | tree
Comments 0 comments
Takes a given directory and lists all the files and folders under it, including sub folders. Resulting array contains associative (folders) and indexed (files) elements. Doesn't return "." and ".."
3
Date Submitted Fri. May. 15th, 2009 9:14 AM
Revision 1
Beginner ChronoFish
Tags Array | parser | PHP | XML | XML2Array | XMLToArray
Comments 1 comments
Here is a my latest refinement of an XML2Array function. It creates an associative array where tags are the keys. When tags have attributes, it becomes part of the key (optionally). The values of the resultant array is itself an array of values OR another XML2Aarray array.

- Enjoy
3
Date Submitted Thu. Dec. 10th, 2009 3:59 AM
Revision 1
Beginner Arsen
Tags PHP
Comments 1 comments
Matching an email.
2
Date Submitted Mon. Mar. 23rd, 2009 2:07 AM
Revision 1
Scripter mycodeofshailendra
Tags PHP
Comments 1 comments
Just add the following code to your .htaccess file in the highest folder of your web directory and yor visitors will be forced to use the www version.
2
Date Submitted Sun. Apr. 4th, 2010 8:16 AM
Revision 1
Helper jackoder
Tags iban | PHP | Validate
Comments 0 comments
Here's a code block about iban validation with php.
« Previous 1 2  ...  8 9 10 11 12 13 14 15 16 Next »