Most browsers are equipped to display PDFs. This means when a user clicks on a link to a PDF on a website, the browser will download and display it. PDFs, however, are intended to be downloaded and retained by the user for offline viewing or printing. It is possible, however, for anyone to save the [...]
Device Detection Plugin for WordPress
February 6th, 2012 by Christian SkellyFirstly set-up your Wordpress environment by creating a new directory in the
Wordpress plugins directory, for our purposes we’ll name it “theme_swapper”
Comments (0)
Incorporate Insert On Duplicate Key Update Method in Zend_Db_Table
November 13th, 2011 by Mark LewisMySQL includes a clause for INSERT statements in which an UPDATE is executed if an existing primary or unique key is encountered on the update. The generate syntax for this statement is: INSERT INTO [table] ([columns]) VALUES ([values]) ON DUPLICATE KEY UPDATE [column updates]; The Zend_Db_Table_Abstract class may be extended to incorporate a method to [...]
Comments (0)
Extend Zend_Db_Table with Replace() Method
October 30th, 2011 by Mark LewisThe REPLACE statement is a handy MySQL addition to the SQL language. It is useful when you want to INSERT a new row or replace any existing row with the same primary key or unique index. In the event of a replace, the existing row is deleted and a new row inserted. If the table [...]
Comments (0)
Disable PHP Execution in Certain Directories
September 22nd, 2011 by Mark LewisIn deploying a web PHP application, there may be instances where you need to disable PHP execution in certain places. This is especially helpful if your application accepts uploaded files which are placed under the document root. This way if a person happens to upload a PHP file, it will not be executed. Under Apache, [...]
Comments (0)




BROADCAST online marketing




