// archives

PHP

This category contains 8 posts

A Default Config.php For All Your Projects

Wheneve rI start on a php project, I include the latest version of my config.php file from my Snippets section. This file contains my most commonly used functions and serve as the base from which I build whatever website/application I am working on. Instead of re-writing my config files differently for each application, I have [...]

mod_url without mod_url?

I know the title seems to make no sense but bear with me a minute. mod_url is an extension for the apache server that allows you to specify automatic routes for urls. So someone going to http://wheremy.feethavebeen.com/xangelo would see their profile page instead of going to http://wheremy.feethavebeen.com/profile?=xangelo It’s just a pretty way of formatting URLs. [...]

Real-World OOP with PHP and MySQL

Check out an in depth tutorial covering Object Oriented design practices through the development of your own MySQL interaction object using PHP. It’s a mouthful, but it takes you from know OOP knowledge to a working OOP application.

Preserve query strings

As you keep developing your website, you’ll notice that occasionally you’ll need to keep track of more than one query string at a time. Eventually, you’ll find that this gets to be such a task in itself, you’ll wish there was an easier way to do it. That is what the preserve_links() function does. It [...]

Simple query strings

Often times a developer will want to pass a piece of information between pages on his website. While the most desirable method to do this is via a form, sometime this just isn’t possible. During these times, it’s time to turn to query strings.
Query strings are a bit of a confusing concept, mostly because of [...]

Introduction to MySQL and PHP

I’ve been working with PHP for so long I’ve forgotten what it was like when you’re just starting out. Things to me like appending strings to form complex sql queries were things that I struggled with when I first started out. The idea seemed to be very simple, but without understanding exactly what was happening, [...]

Excerpt

When you start about building your own blogging/CMS systems, you’ll normally run into the need for an excerpt system. Sure you could use a whole new field in your database to handle it, but sometimes, it’s just easier to grab a bit of text from your post and use that.
However, doing it so that you [...]

Verbose Arguments

Imagine if you will, reading an instruction manual that went a little like this
Place 3b into 2c while holding 4d adjacent to panel a4.

Now, any normal person will have absolutely no idea what’s being talked about. And that’s ok, because there isnt any kind of legend included within. For example, if I included a legend [...]