Archive | PHP RSS feed for this section

PHP: HTML to PDF

31. January 2012

0 Comments

I’ve pretty much tried all the PDF libraries out there for saving HTML to PDF appropriately and correctly using PHP and came to a conclusion (continue reading). The one that worked the fastest and most efficiently was the HTML to PDF class on PHP Classes but eventually this EasySW remote HTML to PDF service in [...]

Continue reading...

PHP: URL inside Regex

19. January 2012

0 Comments

Using special, regular expression characters in regular expressions require you to escape them in the regular expression pattern. I had an issue with dynamically getting an array of URLs from HREF attribute from links using PHP preg_match_all and then wanted to replace this array of URLs dynamically in a loop again with their Bit.ly links [...]

Continue reading...

DomPDF images not working

5. January 2012

1 Comment

Are you having problems with images not displaying in DomPDF generated PDFs? The probable reason is because you’re linking your images in HTML with a path from the script or with an absolute URL like this: <img src="images/myimage.jpg" /> OR <img src="http://domain.com/images/myimage.jpg" /> The solution is to change the image SRC to the absolute path [...]

Continue reading...

Turn off error reporting on your production site

1. October 2008

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

Install WordPress via Command Line

2. September 2008

3 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

21 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

4 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

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

Continue reading...

WordPress : Using jQuery library with your plugin or theme

28. June 2008

10 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

49 Comments

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