jdstraughan


Member since 07/06/2008

7 snippets

8 profile views

View their favorites

Profile

All time reputation: 48

Achievement

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

jdstraughan's Recent Snippets



« Prev 1 Next »
  1. FAV

    Disable view and layout in Zend Framework

    Use this to disable view and layout in Zend Framework controller action
    PHP saved by 12 people 1 views posted 9 years ago jdstraughan
  2. FAV

    Create Digg Url with PHP

    This function will convert any long url into a Diggbar url
    PHP saved by 2 people 0 views posted 10 years ago jdstraughan
  3. FAV

    Date function parameters for RSS formated date (pubDate)

    PHP 0 views posted 11 years ago jdstraughan
  4. FAV

    Make page titles seo-friendly for URL

    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...
    PHP saved by 44 people 28 views posted 11 years ago jdstraughan
  5. FAV

    Set PHP time limit for script execution to infinity

    Reset PHP script time limit
    PHP saved by 4 people 4 views posted 11 years ago jdstraughan
  6. FAV

    Format number with commas every 3 decimal places

    Adds commas to numbers. 1234567 becomes 1,234,567
    JavaScript saved by 4 people 1 views posted 11 years ago jdstraughan
  7. FAV

    Linux shell commands from php script

    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.
    PHP saved by 8 people 5 views posted 11 years ago jdstraughan
« Prev 1 Next »