Creating a tar gzip Directory

I always forget how to use tar to create a .tar.gz file. While yes, man pages will provide this info, it’s far quicker to search online. To make it easy for me find, and anyone else, here it is:

Creating at tar gzip tar -czf new_tar_gzip_file.tar.gz /thedirectory_to_tar_gzip

If you want to preserve the permission on . . . → Read More: Creating a tar gzip Directory

Kohana 3 Routing – Part 2: Dynamic Routes and Default Values

Part 1 | Part 2

In Part 1 of these articles we learned to created a simple static route in Kohana. In this part we’ll build on the basic routing to make parameters passed in the URL available to the action function.

Basic Parameters

Passing parameters into kohana from the URL is a . . . → Read More: Kohana 3 Routing – Part 2: Dynamic Routes and Default Values

Kohana 3 Routing – Part 1: Static routes and Subdirectories

Part 1 | Part 2

The complexity of Kohana routing is really not as daunting as it first appears–especially if you’ve the leisure to browse the cleanly written, well organized code. However, for those who lack the time (or desire) to parse libraries, Kohana can present some stumbling blocks to a newbie early on . . . → Read More: Kohana 3 Routing – Part 1: Static routes and Subdirectories

PDO with MySQL DB Usage Example

Overview of Examples

This is just a quick example on using PDO for connecting to a MySQL DB in your PHP code. There are just a few high level reasons why I recommend using PDO, which I’ll go into detail in later post, but for now at a high level PDO:

Encourages use good Object . . . → Read More: PDO with MySQL DB Usage Example