Archive | Programming RSS feed for this section

Turn off error reporting on your production site

1. October 2008

3 Comments

Turn off error reporting on your production site

On a production site, you would most likely want to hide all possible PHP errors, warnings and notices from your users for both usability, presentational and security purposes.

Continue reading...

HTML Entities

11. September 2008

0 Comments

HTML Entities

When you use HTML special symbols on your website pages, it is better to use the actual unicode HTML entities to ensure (X)HTML validation and proper encoding of the content on your pages to all users.

Continue reading...

Install Wordpress via Command Line

2. September 2008

0 Comments

Install Wordpress via Command Line

I wrote a useful article/tutorial over at BloggingRocket which guides you through the process of installing Wordpress with Shell Access. Please feel free to check it out and comment.

Continue reading...

CakePHP : Change view file from controller

9. August 2008

3 Comments

With CakePHP, the controller core automatically detects the file name of the view file which needs to be rendered from a controller action. You might want to reuse an existent view for an action or specify a different file name.

Continue reading...

Wordpress.com Stats Stopped Working

6. August 2008

0 Comments

I recently integrated a blog and documentation base into the Tribulant.com website and noticed after a few days that my Wordpress.com stats stopped working completely after switching the theme.

Continue reading...

PHP : Increase memory limit

5. August 2008

0 Comments

Have you ever received a fatal error on your server similar to the one below when you tried to execute a script? The fatal error shown below, indicates that your PHP configuration has a memory limit set and the script which you are executing is trying to allocate more memory than what is available for use.

Continue reading...

Wordpress : Using jQuery library with your plugin or theme

28. June 2008

3 Comments

When you develop a Wordpress plugin or theme, you might want to make use of the jQuery library included and distributed with the Wordpress package.

Continue reading...

Wordpress : Translate a Plugin

25. June 2008

1 Comment

First off, you have to know that not all Wordpress plugins can be translated. The plugin developer(s) had to take the necessary steps such as using the Wordpress __() and _e() functions and load_plugin_textdomain() in order to parse the strings/text of the plugin through the localization system.

Continue reading...

WordPress : Using Javascript libraries with your plugin or theme

21. June 2008

13 Comments

When you develop a Wordpress plugin or theme, you might want to make use of some of the Javascript libraries distributed with the Wordpress package such as Prototype, Scriptaculous and jQuery.

Continue reading...

PHP : Date difference in days

17. June 2008

3 Comments

You might need to calculate the date difference in days using PHP. You can easily calculate the days difference by using something like the code below.

Continue reading...