PHP Debug Function





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

« Previous 1 2 3 4 5 6 7 8 9  ...  15 16 Next »
5
Date Submitted Mon. Oct. 22nd, 2007 8:43 AM
Revision 1
Beginner richard123
Tags JavaScript | PHP | resolution
Comments 3 comments
This detects screen resolution using javascript and makes it available to php by way of cookies.
5
Date Submitted Fri. Oct. 21st, 2005 9:52 AM
Revision 1
Coder mattrmiller
Tags PHP | Random | String
Comments 1 comments
Random String
5
Date Submitted Mon. Oct. 31st, 2005 10:38 PM
Revision 1
Coder mattrmiller
Tags ColdFusion | HTML | Strip
Comments 1 comments
Strip HTML
6
Date Submitted Mon. Jun. 4th, 2007 3:06 PM
Revision 1
Scripter Fordiman
Tags "object passing" | JavaScript | PHP | serialize
Comments 6 comments
This is a quick set of overrides for Javascript so that any variable can be passed to PHP in a GET/POST activity. Just call myVar.toPHP();

I use this little set of functions extensively in a little Javascript/PHP RPC handler I wrote. I don't have the reverse function, as I pass JSON back to the browser for the return value.

Note: This lib is not safe for binaries or HTML Elements. The former will come out similar to FTP ASCII breaks, and the latter will cause infinite recursion. If you want to make a speical case for HTML Elements, do so; you could probably just test for parentNode and create a 'safe' object from that. I didn't need it, so I didn't code it.

As for binary safety, at some point between toPHP/escape/post/urldecode/unserialize, the object breaks. Rather than create a huge fix for something I didn't need to do, I put in a quick match/hack. Don't like it? Write the fix yourself.
6
Date Submitted Mon. Feb. 12th, 2007 7:00 PM
Revision 1
Helper snowdonkey
Tags "hits counter" | cookies | PHP
Comments 2 comments
A simple page hits counter that uses a single cookie to tell the user how many times they have visited the page.
6
Date Submitted Thu. Mar. 1st, 2007 3:45 PM
Revision 1
Helper mjlintz
Tags PHP
Comments 1 comments
Pull items from a mysql db table and display in the following format-
item1, item2, item3

In the example code, the query will return all items that have the color "red" specified in the db.
6
Date Submitted Wed. Oct. 11th, 2006 4:34 AM
Revision 1
Beginner wlasson
Tags PHP
Comments 8 comments
This is a state list I made for a website. I kept it just in case i ever needed it again, which i have. I figured it would probably help someone else out.

It includes all states in the U.S.
6
Date Submitted Sun. Oct. 22nd, 2006 5:34 AM
Revision 1
Beginner kiefpiet
Tags PHP | upload
Comments 2 comments
Simple file upload script.
7
Date Submitted Mon. May. 21st, 2007 12:22 AM
Revision 1
Scripter SecondV
Tags "register globals" register_globals, | PHP
Comments 0 comments
This function will reverse the affects of register_globals
7
Date Submitted Fri. Oct. 14th, 2005 6:10 AM
Revision 1
Helper lilleman
Tags File | Folder | PHP | Write
Comments 1 comments
Implementation of file_put_contents for PHP4
« Previous 1 2 3 4 5 6 7 8 9  ...  15 16 Next »