Archive | PHP RSS feed for this section

20 March 2012 0 Comments

How to set php.ini values in .htaccess

If you can’t or don’t want to edit the host’s php.ini file, you can make site-specific php.ini value changes using .htaccess. Simply insert a new line on this format: php_value {name} {value}

Tags:
7 April 2011 0 Comments

Case insensitive functions not working properly with special international characters

I was creating a PHP-level search function using stripos to check if the search query was found in a string. Everything was working perfectly except special characters were still case sensitive. Turns out the problem is that the default locale was set to one not supporting those characters. To fix it, change the default locale [...]

Tags:
8 November 2010 0 Comments

Magento redirecting back to the login box after successful login

I have been unable to login to Magento 1.4.0.1 for a few days and after testing every solution suggested in blogs and forums I decided to clear the cache. Turns out this was the solution for me: rm var/cache/* -rf

Tags:
20 July 2010 2 Comments

Buddypress avatars not shown in Cometchat after upgrade to WordPress 3.0

I was having problems showing the Buddypress avatars in Cometchat after upgrading to version 3.0 of WordPress. Instead of showing the Buddypress avatars, Cometchat was showing a Gravatar. Looks like the problem is that WordPress 3.0 has a different directory structure and Cometchat can’t locate the files anymore.