↓ Skip to Main Content

Patrick Talmadge

My Thoughts and Ramblings

Main Navigation

  • Home
  • About Me
  • Friend Me On
  • My Pictures
  • My Reading
    • 2012 Reading
    • 2011 Reading
    • 2010 Reading
    • 2009 Reading
    • 2008 Reading
Home › Posts tagged PHP

Tag: PHP

Regex Flickr Parser

By Patrick Talmadge Posted on December 20, 2011 Posted in Computers, PHP, Programming, Regex No Comments

Today’s Regex is used to parse a string for Flickr links and extract the Photo_ID. Once we have the Photo_ID we’re able to create a standard embed code from nearly any Flickr URL. Supported Links: The following Regex supports these …

Regex Flickr Parser Read more »

Tagged with: Flickr Embed, PHP, Regex

Regex Vimeo Parser

By Patrick Talmadge Posted on December 17, 2011 Posted in Computers, PHP, Programming, Regex 1 Comment

Today’s Regex is used to parse a string for Vimeo links and extract the Video_ID. Once we have the Video_ID we’re able to create a standard embed code from Vimeo links. Supported Links: The following Regex supports these Vimeo links …

Regex Vimeo Parser Read more »

Tagged with: PHP, Regex, Vimeo Embed

Regex YouTube Parser

By Patrick Talmadge Posted on December 14, 2011 Posted in Computers, PHP, Programming, Regex 4 Comments

Over the next several days I’m going to post a series of Regex strings. These Regex strings can be used to parse input for different links. I’m using PHP in my examples (you may need to tweak the Regex to …

Regex YouTube Parser Read more »

Tagged with: PHP, Regex, YouTube Embed

PHP Date in Human Readable Format

By Patrick Talmadge Posted on June 30, 2011 Posted in Computers, Programming 4 Comments

I’m working on a PHP project that requires human readable, relative date formatting. Below is the PHP function I’m using. The function handles past and future dates. Sample Future Output : 30 seconds to go 1 minute to go 5 …

PHP Date in Human Readable Format Read more »

Tagged with: Date Format, PHP

Expand URL

By Patrick Talmadge Posted on November 12, 2009 Posted in Computers, Hacking, Security No Comments

The popularity of short URL services, like tinyurl.com and bit.ly, has grown due to the character limits of Twitter. These services pose a security risk because they could be used to conceal the addresses malicious sites. Users are being taught …

Expand URL Read more »

Tagged with: PHP, Security

Archives

  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • June 2012
  • December 2011
  • October 2011
  • August 2011
  • June 2011
  • April 2011
  • March 2011
  • February 2011
  • December 2010
  • November 2010
  • October 2010
  • August 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • September 2007
  • July 2007
  • June 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2023 | Powered by Responsive Theme