Archive | PHP RSS feed for this section

Turn off error reporting on your production site

1. October 2008

8 Comments

Turn off error reporting on your production site

ShareOn 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...

Install WordPress via Command Line

2. September 2008

3 Comments

Install WordPress via Command Line

ShareI 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

15 Comments

ShareWith 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

4 Comments

ShareI 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

6 Comments

ShareHave 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 [...]

Continue reading...

WordPress : Using jQuery library with your plugin or theme

28. June 2008

10 Comments

ShareWhen 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

39 Comments

ShareFirst 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

32 Comments

ShareWhen 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

26 Comments

ShareYou 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...

PHP : Array to Object

6. May 2008

23 Comments

ShareI wrote a quick and simple function which allows you to quickly convert arrays to objects. It allows you to change an array like this :

Continue reading...