29Jul/112
Useragent browser and OS detection PHP script
PHP Browser detection made easy Useragent strings are notoriously tricky, but essential for statistic gathering, and PHP scripts to process them are few and far between, often out of date and difficult to update, or plain old inefficient. I set about writing a simple analysis script that was easy to update and had a small footprint. I can live with 99% accuracy for my stats, I dont need to know if14Feb/110
HTML5 Rolls out
All new websites to feature HTML5 Im happy to announce that we have completed our research into the cross browser incompatibilities of HTML5, and that all new websites will be built using the stable structural elements of the new language. The official recommendation by W3C isnt expected until around May of this year, with the final implementations being expected some time in 2012, but given that8Oct/100
Understanding DNS
Part one - Basic domain name settings One of the main problems we encounter when taking over an existing domain name or website is the DNS configuration. Most people do not understand DNS, or have lost contact with "the guy that sorted it all out". Even IT professionals are often left in the dark as to how a companies DNS is configured. It may have been setup years ago, or companies are reluctant28Jun/101
Get Your SEO Campaigns Right: Keywords
Getting your search engine optimisation campaign right can be the difference between success and failure. Research shows that the top listing on Google receives 55 percent of the traffic for the term that was applied, and other sites in the top ten receive the next 40%. This shows that SEO can be a cost effective way to achieve long term success for your business. Getting it right though is less s30Apr/100
CHMOD in Linux
Some Ecommerce applications such as PrestaShop have an annoying habit of locking image files upon upload. Depending on your FTP servers setup, this can result in the files being inaccessible and preventing you from downloading the files via FTP, or overwriting the files directly. In a typical Plesk environment, the files have deletion enabled which allows you to delete the file and then re-upload9Apr/100
Docs: Class Definitions
Database Class The query() method takes up to 3 parameters. The first being the required SQL, the second is the number of rows to return (if this is left blank, or zero is passed this will return all rows), and the third is a pass-through tracking reference which displays in the debugging console. query("SELECT * FROM `table`"); //Return all rows query("SELECT * FROM `table`", 20);26Mar/100
Scalable Web Applications with PHP
One of the arguments pitted against the use of PHP for application programming is its lack of standards. For the last 10 years PHP has been moving closer to the Java paradigm and PHP6 will be the closest yet to enforcing the type of programming constructs you would expect in Java. Whilst PHP is a long way from Java in terms of power, I intend to show that adherence to best practice and hence quali24Mar/102
Tutorial: TPL Compiler Part 2
Part 1 here More Variables Earlier I discussed system-wide variables (properties) that are available to use directly within within the CMS or templates. Properties such as {$IP} and {$year} are automatically assigned by the system, and you can easily assign other properties in PHP: $theme->assign("Foo", "Bar"); It would be useful then, to be able to assign properties directly within the CMS/TPL9Mar/100
Extending the Lynk CMS – Part One
Dont reinvent the wheel, extend it. This is likely to be a long and ongoing article as theres a lot to cover. In true MVC fashion I start with creating a model (in the form of a single database table for the purposes of this post), creating a working controller and finally describing how the view is defined. Before you begin, you need to understand a little about the framework upon which this syst5Mar/100
