Sometimes it’s necessary to cache only certain elements or areas of your dynamic website to speed up the load times. I recently needed to cache two DIV’s that were being dynamically generated on one of my websites.
WordPress 3 error: Warning: Cannot modify header information
This error message has the ability to drive some developers completely insane. However, the solution to this error is A LOT easier than you think.
Extracting a domain name with PHP and Regular Expressions
As most of your know, regular expressions can be a nightmare if you don’t know much about the subject. Here is a quick tutorial on how you can extract the domain name from any URL using regular expressions and PHP. This includes http:// and https:// domain names. <?php $link1 = "http://nickduncan.co.za/"; $link2 = "http://nickduncan.co.za"; [...]
Stopping SQL Injections
SQL injection is a code injection technique that exploits a security vulnerability occurring in the database layer of an application. The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed.
PHP Header Include – Saving development time
I have had the opportunity to go through a lot of other developers coding skills and practices in the past few months and I must admit there is a lot of time wasting going on. Are you the type of developer that has a <title>, <meta>, <link> and <body> tag on every page without a global include? If so, let me show you how to simplify your life.