johnself


Member since 02/27/2007

Location: Nashville

Website: http://johnself.com

6 snippets

1 profile views

View their favorites

their Tags


Profile

All time reputation: 73

Achievement

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

johnself's Recent Snippets



« Prev 1 Next »
  1. FAV

    Set date Function Timezone

    Instead of using this function to set the default timezone in your script, you can also use the INI setting date.timezone to set the default timezone. * Does not affect timestamp functions, which are all GMT
    PHP 0 views posted 11 years ago johnself
  2. FAV

    Gzipping your CSS

    CSS files for larger sites can become pretty large themselves. Gzipping or compressing these files has shown to provide a reduction in the neighborhood of 70-80% of the original file size, a fairly significant 'weight loss'.
    PHP saved by 68 people 30 views posted 12 years ago johnself
  3. FAV

    SMS/Email Weather Alert

    In light of last nights tornado warnings here in TN, I thought it appropriate to post this little bit of code that I use to alert myself and others of dangerous weather conditions via SMS/Email alerts. I run this through cron at Dreamhost without...
    PHP saved by 40 people 9 views posted 12 years ago johnself
  4. FAV

    Passing an array through GET request

    PHP saved by 8 people 5 views posted 12 years ago johnself
  5. FAV

    Export MySQL query results to CSV

    PHP saved by 126 people 14 views posted 12 years ago johnself
  6. FAV

    Get Enumerated Values for a MySQL Field

    Returns an array of values specified for an enumerated MySQL field
    PHP saved by 8 people 1 views posted 12 years ago johnself
« Prev 1 Next »