Archive for the ‘Programming’ Category

PHP Tutorial: A Quick Way to Break up a URL into usable Pieces

PHP has a built in function which allows for the quick breaking up of a well formed URL into usable pieces, namely parse_url. This function parses a URL and returns an associative array containing any of the various components of the URL that are present. It is important to note that parse_url does not validate [...]

Installing WordPress/Joomla/Drupal on CentOS 6.2 (netinstall)

Step by Step how to install WordPress/Joomla/Drupal on CentOS 6.2 (netinstall). I’ve been looking at using a CMS for a while as an alternative to designing websites from scratch. I finally have had a reason to use one (long story) but the short end of it is that it needs to run on Linux. There [...]

How to Install A Perl Module In Linux Without Root Permission

Installing a Perl module is not a genius’ work, but getting it done without root access can be a challenging task (of course not impossible). You may face this situation when you do not have rights to standard directories where a Perl module is installed. In this tutorial we will see how we can install [...]

Fixing Apache (13)Permission denied: access to / 403 Forbidden

How to Fix Apache (13)Permission denied: access to / 403 Forbidden. Every so often I run into a 403 Forbidden response when I’m setting up something in Apache, checking the log files will yield something like: Incoming search terms:rhel 6 (13)Permission denied apache (3)(13)permission denied: access to (3)how to fix error 403 forbidden access is [...]

PHP: Remove Last Character from String – substr/substr_replace/rtrim

 This is a very common PHP question, how to remove last character from string in PHP? So here are three ways how to delete last character from string in PHP.   Incoming search terms:how to remove last character from string in php (1)last command remove in string php (1)perl substr replace last character (1)phpo multibyte [...]

PHP Memory Usage Information Class

Sometimes it’s nice to know or even very important to know, how much your PHP script is using memory. This is a simple example of a class, which can be used to collect the PHP script memory usage information and to print all information. It’s easy to reformat output, if you want to use it [...]

WP-Optimize Database Cleanup and Optimization Plugin for WordPress

I use wordpress solutions in a day to day basis. WordPress comes with a very extensible framework that allows you to add comprehensive and powerful functionality to your Blog system. WP-Optimize plugin is written to simplify your daily wordpress works and make it simpler. WP-Optimize is a wordpress 2.7++ database cleanup and optimization tool. It [...]

How to disable scripts and styles

Many plugins and themes add JavaScript and CSS files to your site. While this alone isn’t necessarily a bad thing, using several plugins that do this can bog down your site with loads of requests for these files. The good news is that WordPress has a built-in system that allows us to deregister these scripts [...]

Powered by WordPress | Designed by: best suv | Thanks to trucks, infiniti suv and toyota suv