Get File Extension





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

« Previous 1 2  ...  9 10 11 12 13 14 15 16 17 Next »
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.
6
Date Submitted Tue. Sep. 12th, 2006 8:23 AM
Revision 1
Helper axsaxs
Tags binary | CSharp | File
Comments 1 comments
Write a set of bytes into a 'so-called' binary file. The point is that we use BinaryWriter here and we have a byte array as input.
2
Date Submitted Tue. Sep. 12th, 2006 8:00 AM
Revision 1
Beginner dogo
Tags File | String
Comments 0 comments
This function loads an File into an String.
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.
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.
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.
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
*/
-9
Date Submitted Mon. Aug. 28th, 2006 9:00 AM
Revision 1
Helper axsaxs
Tags binary | CSharp | File
Comments 1 comments
Write a set of bytes into a so-called binary file. The point is that we use BinaryWriter here and we have a byte array as input.
15
Date Submitted Sun. Aug. 27th, 2006 10:44 AM
Revision 1
Helper mceppi
Tags filesize | PHP
Comments 2 comments
A small recursive php function to determine the size of a directory by adding all it's contents together and returning them as an integer.
8
Date Submitted Fri. Aug. 4th, 2006 4:16 AM
Revision 1
Helper axsaxs
Tags File | I/O
Comments 0 comments
Class method to read a binary file and copy it to a byte array.
« Previous 1 2  ...  9 10 11 12 13 14 15 16 17 Next »