Below are the top ranked snippets.

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

« Previous 1 2 3 4 5 6 7 8 9  ...  62 63 Next »
18
Date Submitted Mon. Oct. 9th, 2006 2:58 PM
Revision 1
Scripter wiz1705
Tags Array | PHP | XML
Comments 2 comments
I've seen XML 2 Array functions done in other ways but this is the shortest implementation I've seen yet. I didnt write it myself though, but I thought I'd submit it for common good of this site. It uses regex and works prefectly.
18
Date Submitted Tue. Nov. 7th, 2006 9:04 PM
Revision 1
Scripter Fordiman
Tags ajax | JavaScript | XML
Comments 1 comments
This is a brief revision to my previous snippet. It is still what it was: a small, simple system for using XMLHttpRequest without using globals.

I'll put the API spec in the code this time, so as not to clutter the front page further.

Changes:

Changed name to HTTPRequest (far more accurate)
Added HEAD requests
Shortened code by making a GenericRequest function
Used a better method for getting an XMLHttpRequest object (checks multiple MS versions and implements the latest one)
18
Date Submitted Thu. Jul. 27th, 2006 4:51 AM
Revision 1
Helper rastersize
Tags PHP | quotes
Comments 1 comments
The recursive function stripslashesDeep($value) will (upon called) strip slashes (\) from strings and arrays (even arrays with arrays within themself). The controlstatement (if) checks if magic quotes gpc is on, if it is we strip the slashes it have added.

Very good snippet if you want to have the "same" input even if you switch to an enviroment where magic quotes gpc is set to something else than on your originall server.
18
Date Submitted Mon. Oct. 10th, 2005 11:09 AM
Revision 1
Coder mattrmiller
Tags Gravatar | Image | PHP
Comments 4 comments
Get Gravatar Image
17
Date Submitted Mon. Oct. 9th, 2006 2:49 PM
Revision 1
Scripter wiz1705
Tags classes | PHP | plugins
Comments 0 comments
Basic internal class loading for PHP. Could make some plugins with this code if used properly.
17
Date Submitted Thu. Jul. 27th, 2006 7:54 AM
Revision 1
Helper rastersize
Tags debug | PHP
Comments 0 comments
A small function to help you debug your PHP scripts (with the debug modell, output as much as possible to see where the script fails).
17
Date Submitted Sat. Aug. 26th, 2006 11:20 PM
Revision 1
Helper psykoprogrammer
Tags ajax | JavaScript
Comments 2 comments
A simple AJAX class. The code for the class is provided as well as example HTML and PHP code for usage.
17
Date Submitted Sun. Sep. 24th, 2006 5:35 PM
Revision 1
Helper kahotep
Tags Form | HTML | PHP
Comments 3 comments
Generates a tree view within a dropdown select box.
17
Date Submitted Mon. Oct. 9th, 2006 3:13 PM
Revision 1
Helper inxilpro
Tags classes | Database | DB | PHP | Simple
Comments 6 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.
17
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.
« Previous 1 2 3 4 5 6 7 8 9  ...  62 63 Next »