jQuery – toggle more / less text
This next tutorial is a nice easy implementation of a more / less toggle on a paragraph with text. This can be used in a variety of ways with a few simple changes e.g.
Do we really need another browser?
For those of you that spend a large amount of your day adjusting your styles (and occasionally javascript) to work on a variety of browsers you may be moaning over the thought of IE releasing another browser. It’s great that they are trying to improve things over at Microsoft, but I’d like to point out a few things as to why this could cause more pain than joy. Looking at the stats over at w3schools which gives us a rough indicator of the break down between IE6 and IE7, they both have pretty close market share
Large sized mysql dump
As mentioned previously I have been working recently converting over some old classic asp pages into php. It has also been a company decision for them to continue to run mssql in conjunction with php
Classic ASP.. what a headache
The company I’m working for currently is going through the process of transferring all their old classic asp sites over to php and adding new functionality at the same time. In order to meet deadlines some of the new functionality is being added in classic asp and being converted over at a later date which is not the best way to do things but keeps things moving (please note: I wouldn’t recommend this to anyone as an exercise). One of the biggest troubles I’ve had is getting values out of arrays
The importance of regular expressions – pt 2
Following on from my previous entry on regular expressions, I’d like to go over some of the useful functions that are built in to php for dealing with regular expression. The two most common functions that I think you will come across are preg_match and preg_replace .
Getting certain files from a directory
Recently while reading the book Professional LAMP: Linux, Apache, MySQL, and PHP5 Web Development I came across a great piece code that can be used to retrieve an array of filenames from a directory matching a certain pattern. Unfortunately the function in the book doesn’t quite work with the current definition of that function, but with a bit of tweeking we can get it to do the same thing. Previously we would use preg_grep along with scandir to match the files in a directory to a certain pattern
Processing XML with php5 and DOM extension
Depending on what you are using php for, parsing XML documents may not be something you do regularly, but it’s something that’s quite useful to know.



















