Fork me on GitHub

php scripting

Category Archives: PHP Scripting

Getting to know vim

Since OS X brought Unix into my everyday life I’ve been fascinated by command line text editing. Mainly for remote tweaks and working directly on the server. However, the more I learn about vim the more I like it… vim is one powerful little editor. This is actually my second exploration into vim but I’ve [...]

August 2, 2005 | PHP Scripting | 3 comments

Basic Emailer Class

So, I ended up on a project that required a lot of mail notifications to be sent so I went ahead and whipped up a class for sending emails via PHP. They didn’t have to be pretty to start off with so this is merely a plain text email class at the moment. HTML and [...]

July 14, 2005 | PHP Scripting | No comments

MySQL Abstraction update…

Yep, the script needed updating already. I left out a routine in the arrayAssoc and arrayNum functions to account for an empty result set. So if you’ve downloaded it, grab this new version here. Did anyone actually download and use the first one?

June 24, 2005 | PHP Scripting | 3 comments

More gettin’ my OOP on: Aggregation

I promised myself that I’d write about something else but this has me so stoked that I just can’t keep it in. One of my biggest problems with getting into large PHP application programming with OOP was the sharing of functions. Inheritance just wasn’t doing it the way I wanted it to. I knew it [...]

June 21, 2005 | PHP Scripting | 3 comments

My MySQL Abstraction Class

We all do it, and its a foundation of providing dynamic web content. The database call is almost everywhere now as dynamic pages are becoming the norm and not the exception. More and more I’m making database calls and my old class just wasn’t cutting it anymore.

June 17, 2005 | PHP Scripting | 7 comments

Let’s hear it for scripting!

Ya know, 3 years ago I never thought that command line could do much more than system administration tasks. Whenever people talked about writing scripts to do tasks I could never think of a task that I’d use the command line for in a normal days work. Well, now I’ve found something. I actually wrote [...]

June 3, 2005 | PHP Scripting | 2 comments

I guess I learned it wrong

Globals. When I first started learning PHP it was well after the push to ship PHP with register_globals off by default, so I never learned to use them. However, I also thought the $GLOBALS variable was off limits as well. I was wrong.

April 21, 2005 | PHP Scripting | 7 comments

Passing by Reference

Being a self taught php programmer I tend to learn something every time I run accross an article outlining different techniques. Lately I’ve been learning about references. At first I thought "so what?" at the thought of using a reference to a variable instead of the variable itself. But once I thought about it some [...]

| PHP Scripting | No comments

Making life easier with exec

I’ve been playing more and more with the php exec command to do stuff – I got my first taste of doing this with running htDig as a command and pulling its results into an array. So I decided to find out if using exec to do directory listing would save any script length or [...]

March 4, 2005 | PHP Scripting | 12 comments

Regex

Regular expressions have always been (and will most likely continue to be) a challenge to construct. This site is using a system for parsing bb code in the posts that I swore to generate myself and am only permitting myself to seek help on it when I’m absolutely stuck. I guess that’s why it is [...]

January 27, 2005 | PHP Scripting | 9 comments