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.
Class ‘PMA_Message‘ not 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.
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) OSand 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.
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.
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.