Tag: Web

Forget text files - here’s a .php only database system

What do you do when you’re writing a web app that needs to store data, but using a dedicated relational database system would be overkill? Many developers are taking advantage of PHP’s file editing capabilities to use plain text files to store and retrieve data. While this is a more lightweight solution, reading the contents of a file is not always the fastest way to retrieve stored information. Here’s my very own technique to use a database-like system with PHP files only, with just one line of code needed to grab the information, ready to be used.

This technique is best suited to situations when speed is required in accessing the data. It works best with small amounts of data, and it’s possible to store arrays, strings, numbers, etc. Let’s explore the basic theory behind the system.

Continue Reading Forget text files - here’s a .php only database system

Subversion Basics

SVN is the next big productivity and collaboration tool to grace the internet. Subversion is the wiki of development, allowing you to track changes, switch to older versions of your project and work as part of a team. Using SVN is a fairly easy process that can be accomplished with extreme ease through the command line.

Continue Reading Subversion Basics

CSS Style guide generator

For a web designer, remembering the properties of all the CSS classes, IDs and elements that have been written, often over multiple stylesheets, can be a real task. Often developers need to keep referring back to their CSS to check the definitions, look at the properties and classes and find the right element. This is time wasted. Time that could be spent on more constructive endeavours.

Continue Reading CSS Style guide generator

Function - call thyself

A function that calls itself. What sorts of pictures does that conjure in your mind? Errors, warnings or infinite loops? Crashes? Bugs? Believe it or not, using a function that calls itself can be used for more than hanging up IE. It can cut down on the amount of code you have to write, often by hundreds of lines.

Continue Reading Function - call thyself

WP Plugin: Gregarious

Social bookmarking allows users to submit, comment on, and “promote” websites. The Gregarious plugin supersedes the Digg This Reloaded Plugin and allows for seamless integration between your Wordpress Blog and social bookmarking sites such as Digg.com, Del.icio.us, Reddit and more. Requiring no editing of templates, and a simple point and click interface, Gregarious is the ultimate social bookmarking plugin for Wordpress.

Continue Reading WP Plugin: Gregarious