WordPress 403-Access Denied Error

When certain sections in the WordPress admin show you a 403 Access Denied Error it may mean that your server has mod_security  enabled and is causing access errors because of some unacceptable values in POST data. For instance, i had this error when i tried to edit/add posts. After some time googling i …

Joomla 500 server error

If you are facing http 500 error on a Joomla installation on login, make sure following directories have 0775 permissions:

Also make sure that following paths are pointing to correct folders in configuration.php

Resetting Drupal 7 administrator username and password

A few days back i forgot the administrator password to one of my projects on test server. Now, you must be thinking with all the security features Drupal has, it should be somewhat challenging to change the admin password. But it’s not! Here is a simple code to change the …

Generating RSS Feeds using SimpleXML in PHP

Ever felt the need to generate RSS feeds for any of your projects. If you are wondering what feeds are then here is a link from Wikipedia for you. Basically an RSS feed is an XML document that follows a certain XML structure for publishing news and article updates related …

Finding mulitple occurences of a string within another

I wrote this method just to find multiple occurrences of a substring within another and return indexed-positions that matched in an array.