Category Archives: PHP

2 Common errors while setting up phpMyAdmin on Mac OSX

You might encounter the following two errors while installing phpMyAdmin on OSX Login without password is forbidden by the configuration ( See AllowNoPassword ) #2002 can not login tot the MySQL server Here are the fixes for the above two … Continue reading

Posted in OSX, PHP, Web Development | Tagged , | Leave a comment

Unable to connect mysql on OSX form PHP

If you are unable to connect to mysql from PHP and you are sure that MYSQL is running, then try changing your host name from localhost to 127.0.0.1

Posted in OSX, PHP, Web Development | Tagged | Leave a comment

Trying cakePHP, lets see how it goes.

My growing list of direct AD sales was becoming hard to manage, dealing with direct AD sales was taking more time than it should actually take. It’s not streamlined. I lost AD revenue several times because I was too lazy … Continue reading

Posted in CakePHP, PHP | Tagged , , , | Leave a comment

Subtracting two dimensional arrays in PHP

In the development a WordPress plugin I had to subtract two dimensional arrays. I tried array_diff() function, unfortunately it doesn’t seem to work for two dimensional arrays. Even if it worked, it wasn’t exactly the functionality I wanted. Be warned, … Continue reading

Posted in Coding, PHP | Tagged , , | Leave a comment