Tag Archives: php

Quick RSS Feed example

Here’s a quick way to get your site running with it’s own RSS feed. You rarely see a site without one! <?php header(‘Content-type: text/xml’); //change file type to XML include(“the database!”);  //get config ?> <rss version=”2.0″> <channel> <title>Feed Name</title> <description>Feed … Continue reading

Posted in Code | Tagged , , | Leave a comment

Functional usage of jQuery to replace PHP

For the longest time, I’ve been using PHP to alternate rows when displaying data in a grid. I stumbled across this neat little site that adds a bit more to tables (or divs for you savvy css designers) How to … Continue reading

Posted in Code, Cool Sites | Tagged , , , | Leave a comment

PHP date essentials

In my projects, I’m always using dates, but to make life easier, I’ve composed a list of the dates I use to help reference by name rather than by the code. <?php $today = strtotime(‘today’); $yesterday = strtotime( ‘-1 days’ … Continue reading

Posted in Code | Tagged , | Leave a comment

Convert US states from abbreviations to full name

This is a real time saver just to convert the abbreviation to a full name. I made this function and always use it in my projects.

Posted in Code | Tagged , , , | Leave a comment

Convert month name to a number

For the longest time, I’ve always come across this barrier. No pun intended. I wish there was an easier way to convert the month name to a number, but after searching, I came across this thanks to doodlebee from webmasterworld. … Continue reading

Posted in Code | Tagged , , , , , | Leave a comment