jdstraughan


Member since 07/06/2008

7 snippets

2598 profile views

4 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

jdstraughan's Recent Snippets



« Prev 1 Next »
Use this to disable view and layout in Zend Framework controller action
2 953 posted 14 years ago by jdstraughan
This function will convert any long url into a Diggbar url
2 798 posted 15 years ago by jdstraughan
If you have a title, for something like a blog or product, and want to make an seo-friendly name to call it, here is a function. SAMPLE INPUT: $title = "This foo's bar is rockin' cool!"; echo make_seo_name($title); //RETURNS: //this-foos-bar-i...
10 1783 posted 16 years ago by jdstraughan
Reset PHP script time limit
4 1617 posted 16 years ago by jdstraughan
Adds commas to numbers. 1234567 becomes 1,234,567
1 1047 posted 16 years ago by jdstraughan
The “2>&1″ bit tells to pipe the standard error to the standard output. Otherwise the standard error may not be outputted by the system and you won’t have a way to troubleshoot your script.
2 968 posted 16 years ago by jdstraughan
« Prev 1 Next »