Viewing posts about Class.

A Simple Mail Object

Sending plain emails with PHP can be pretty easy. On a basic level you can just call mail(), which triggers the server-side sendmail command. Pass in three parameters (a recipient email address, subject, and message) and you're done. When you start looking into file attachments and HTML messages,…

  • Category Web Development
  • Posted April 12, 2013
  • read more

How I Learned to Stop Worrying and Love the String Object

PHP was the first programming language that I understood fluently. Sure, I had dabbled in BASIC, Java, ActionScript (3.0 is pretty awesome), and a few others, but PHP was the first language that I felt truly comfortable with. It wasn't until I moved onto JavaScript that I started to understand a…

  • Category Web Development
  • Posted September 24, 2012
  • read more

Revisiting the Database Class

Several months ago I wrote a blog post describing how to create a database class that would wrap the native php mysqli connection. You can read that post here. Since that post was written I've learned a lot about proper php classes and realized that I made several mistakes in that blog post that I'd…

  • Category Web Development
  • Posted July 5, 2010
  • read more

Intro to SQL Part D

For the last post in this short series on SQL I wanted to explain some more in-depth usage. A technique that I wish I would have started using in my early websites is a centralized script to handle all of my database calls. PHP does have some great functions built in to connect, read, and write…

  • Category Web Development
  • Posted December 12, 2009
  • read more

Distance Compare Class Part B

This post assumes advanced understanding of PHP and some object orientated knowledge.

In my last post, I outlined a basic class that compares addresses by distance. The class returns a sorted, filtered, or single best match from an array of addresses based on a single comparison address. However,…

  • Category Web Development
  • Posted June 30, 2009
  • read more

Distance Compare Class Part A

This post assumes advanced understanding of PHP scripting and some object-orientated knowledge.

One area of PHP that I haven't had much experience with yet is classes. I have a rough idea of what they do, but after working with a few inefficient classes, figured that they are more trouble then…

  • Category Web Development
  • Posted June 28, 2009
  • read more

Activity Stream

  • Tweeted | Me: only has one pair of shoes for running around town, going to the office, mowing the lawn, etc. Also me: [pic.twitter.com/P9PAxbpd7L]
  • Read Good Omens: The Nice and Accurate Prophecies of Agnes Nutter, Witch by Neil Gaiman.
  • Tweeted | Digging head first into a difficult coding issue is fun and all but have you tried digging in and realizing that no… [twitter.com/i/web/status/1…]
  • Tweeted | RT @Shutterstock: Announcing Shutterstock's new self-serve #API plans for developers, startups & SMB's. Learn more and get started for free…
  • Created tag v1.0.4 at shutterstock/public-api-javascript-sdk.
View more activities…