[solved] PHPMyAdmin – PMA_Message class not found error

phpMyAdmin logo Français : Logo de phpMyAdmin
phpMyAdmin logo Français : Logo de phpMyAdmin (Photo credit: Wikipedia)

It’s been a very very (yes a lot) long time since I pinch in something on my blog, I will definitely try to keep up here after.

Okay, to the problem really quick, I got the following error from PHPMyAdmin – a weird one.

ClassPMA_Messagenot found in /usr/share/phpmyadmin/libraries/Message.class.php on line 732

It was driving me crazy WHY? because I never thought I will get a problem to fix something with PHPMyAdmin, after a search I got a hint to fix the above problem. This solution was not helpful since my permission to session folder was OKAY, it is accessible/writable by Apache, this is crazy (challenging).

After hitting my head with questions around sessions, I got a weird idea to see if the space is available for PHP to create sessions – gotcha, that is where my problem was. I cleaned up some unnecessary items and all went well.

Wanted to post this little information for those who are going mad like how I was.

Note: Sorry if I bore some of the users who always see a PROBLEM/PROBLEM & PROBLEM in my blog, I will try to write something different ie., other than technology.

[solved] PHPMyAdmin – PMA_Message class not found error

ECHO or PRINT or ANYTHING – Can you tell me which is FASTER in PHP?

The PHP logo displaying the Handel Gothic font.
Image via Wikipedia

ECHO or PRINT which is faster? – You can see this kind of questions a lot in every PHP blog-space and most of the interview questions ;-). Most of us must be known the answer, Google it, you will ;-).

Yes you can say “ECHO” but how sure are you? We blindly believe on our experts, I agree I do a lot. But it feels something different when you see it on your naked eyes, don’t you? I do.

Recently while surfing (reading obviously) over the internet on various topics, I came across a nice tool which will exactly tell us WHO (language construct or pre-defined function) is GOOD in PHP.

Continue reading “ECHO or PRINT or ANYTHING – Can you tell me which is FASTER in PHP?”

ECHO or PRINT or ANYTHING – Can you tell me which is FASTER in PHP?

[TIPS] – Upload BIG (very large) file in PHP using HTACCESS


Logo of the Apache Software Foundation
Image via Wikipedia


This blog should have been the first one, but somehow slipped through :-). In my early days of coding I found a nice tip to upload a large (really big) files to server with the help of .HTACCESS.

By default, PHP.INI configuration is configured to upload a max size of 2MB (security concern?), I know you can say it just mater of modifying the value in PHP.INI file and restart the server. Yes I agree, but you can do this when you own the server machine, think of a shared hosting server. Continue reading “[TIPS] – Upload BIG (very large) file in PHP using HTACCESS”

[TIPS] – Upload BIG (very large) file in PHP using HTACCESS

INSTALL (SETUP) DEBIAN Linux OS for Development/Production – A Day with SETUP

Debian OpenLogo
Image via Wikipedia

Today I am going to talk about only installation of tools/apps required for LINUX Server. I have chosen DEBIAN, since it makes you intelligent ;-).

Okay, cool, now? First thing you have to buy a hosting space, there are quite a good people who provide this service – do a quick Google.

OKAY – Now let’s say you have got the hosting space and you have selected the DEBIAN (LENNY) OS and logged into the machine – remember DEBIAN is for intelligent & its not for human-beings means most of the tools/apps will require a separate installation. You have to dive deeper to figure out the tools you want and install them – this is interesting because it let’s you know things :-).

This blog post is recommended for those users who knows about LINUX SERVER & shouldn’t find the meaning of Debian in the dictionary.

Let’s get the server ready……

Continue reading “INSTALL (SETUP) DEBIAN Linux OS for Development/Production – A Day with SETUP”

INSTALL (SETUP) DEBIAN Linux OS for Development/Production – A Day with SETUP


how does mail works
Image via Wikipedia

Most of us very well know about mail() provided by PHP which will help us send an email.Okay? Whats the point? Why is this blog? What’s new? Yeah, yeah, I will get to it straight. I am not going to say anything new here, but a little bit of information about how to avoid return-path problem in sending an email.

Recently I was working on a bug which took almost 4 hour for me crack and fix it. It was like this bug was telling:- can you fix me dude? Do you really think you can? I was like going mad and said yes you dirty-bug I am gonna fix you soon.

The problem was mail() function was delivering the email to all of the TO, CC, & BCC to all the people in the list except the client people’s address – this is blocker, the people who suppose to receive this email were not getting it. Wow isn’t.

I was like going mad, I could receive my email to my official ID, gmail ID, yahoo ID, etc and I also checked the IP of the email server is not in any of the blacklisted softwares.

Continue reading “PHP MAIL Header – REPLY-TO and RETURN-PATH”


Session data disappears in FLASH – SWFUpload

Image via Wikipedia

Recently we had to get rid of this strange problem in one of our project due to some security concern. It was a nightmare that we had used a funny method to overcome this problem (by-passing real login session & allowing SWFUpload to upload any image), strange!. But, now we have a solution to this problem thanks to my mind & the time.

The problem is….

When you submit a form (here it’s uploading an image) everything seems to be fine (session data) till the control reaches session_start(), right-after that call $_SESSION array becomes empty and it assigns a new session_id, gotcha!. The problem is with the new session being created each time when SWFUpload try to upload an image, but WHY?

As you know SWFUpload uses flash to do it’s magic in uploading an image asynchronously and flash has an user-agent of “Shockwave Flash”, hence apache thinks it’s a new request from a new browser and it assigns a new session, means it doesn’t really destroys the old session but creates a new session.

The solution is….

to keep the original session_id somewhere either in cookie or in a table, then pass the stored session_id to session_id() before calling session_start().

So simple ah!

Happy coding.

Session data disappears in FLASH – SWFUpload