Profile
Achievement
DrewDouglass's Recent SnippetsTagged php
- All /
« Prev 1 Next »
Originally written by Jason Lengstorf, rewritten by Drew Douglass, packaged into the EnnuiCMS (link above), can be used as standalone class.
Be sure to change or define your constants for PAGE_OBJ_WIDTH and PAGE_OBJ_HEIGHT when using the YouTube m...
1
807
posted 14 years ago by DrewDouglass
Helpful for remembering useful CURLOPT constants. Taken from an example in the php manual comments.
3
938
posted 15 years ago by DrewDouglass
Takes advantage of the SPL. Much easier and maintainable than the previous revisions. Haven't done any benchmarks yet but I imagine it is much faster. "If you want to omit directories, remove the RecursiveIteratorIterator::SELF_FIRST part."
3
667
posted 15 years ago by DrewDouglass
All credit for this snippet goes to Roshan, link is given above.
4
1180
posted 15 years ago by DrewDouglass
More info found in the link above, basically, you can replace the $config['base_url'] to the snippet below and you no longer need to set the base url. Useful for making your application more portable.
7
935
posted 15 years ago by DrewDouglass
Thanks to James Padolsey for sharing this script with everyone on his blog, link above.
0
626
posted 15 years ago by DrewDouglass
All credit for this code goes to the all mighty Fou-Lou of codingforums.com (link given).
0
1836
posted 15 years ago by DrewDouglass