Recursive PHP Syntax Checker





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

« Previous 1 2 3 4 5 6 7 8 9  ...  13 14 Next »
12
Date Submitted Wed. Aug. 30th, 2006 5:06 AM
Revision 1
Helper dohpaz
Tags entities | HTML | PHP
Comments 2 comments
This function is useful in helping to deter spam bots by obfuscating things such as e-mail addresses and URLs that are displayed on a web page. While it's not 100% fool proof, it does offer some protection.

Example:
$email = html_entitize('foo@baz.org');
/*
Outputs foo@baz.com
*/
21
Date Submitted Thu. Aug. 31st, 2006 1:36 PM
Revision 1
Helper dohpaz
Tags debug | HTML | PHP | Variable
Comments 0 comments
A quick and simple function to dump a variable (array, object, string, int, etc) out into -formatted output for a web browser.

If the variable is an array or an object, you can have it returned into the another variable for later processing (i.e., through templates or e-mail). Due to lack of free time, if the variable is not an array or an object, it will ignore the $return value and print directly to output.

Future revisions will add the above mentioned functionality.
9
Date Submitted Tue. Sep. 12th, 2006 1:29 AM
Revision 1
Beginner Headzoo
Tags http | PHP | Sockets
Comments 1 comments
Grab a remote web document using sockets, with limited handling for 301 & 302 redirects.
12
Date Submitted Tue. Sep. 12th, 2006 1:34 AM
Revision 1
Beginner Headzoo
Tags Array | JavaScript | PHP
Comments 3 comments
Given a PHP array (even a deep nested array), returns a string representation of that array as JavaScript array. Useful when using PHP to output JavaScript.
10
Date Submitted Fri. Sep. 15th, 2006 9:04 AM
Revision 1
Beginner devlin
Tags PHP
Comments 0 comments
A function that will either read a file or read a string, and parse a random line from it. Very simple.
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 .
11
Date Submitted Mon. Sep. 18th, 2006 5:02 AM
Revision 1
Helper nothingless
Tags forcodegrrl | forms | PHP
Comments 0 comments
The below code will generate a form dropdown for all 12 months, with the current month selected. Handy for those date pickers!
10
Date Submitted Mon. Sep. 18th, 2006 5:05 AM
Revision 1
Helper nothingless
Tags forcodegrrl | forms | PHP
Comments 0 comments
The below code will generate a form dropdown for all the days of the month, with today's day selected. Handy for those date pickers!
13
Date Submitted Mon. Sep. 18th, 2006 5:13 AM
Revision 1
Helper nothingless
Tags forcodegrrl | PHP
Comments 3 comments
For those times you need to do a loop in PHP, but have the outcome be in descending order (ie, start at 10 and end at 1).
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
« Previous 1 2 3 4 5 6 7 8 9  ...  13 14 Next »