Php

Why I love Node.js

published on

Yes I know, Node.js is the new Hype but I think it’s more than a simple overrated thing. Few years ago I met Ruby and it was love at first sight. I felt it will be the new era of development. Yes it is but not what I was expecting. One year ago a met Node.js and I felt the same but it was not only inflammation, it’s a true love. I’m a programmer. I know a lot of languages and I specialised for PHP but it’s too limited and boring for me today. So I started to use that new-old language, Node.js. It’s new-old because I use JavaScript day by day but not as backend application.

Read More...

Image upload? Watch out!

published on

Some days ago I saw a vulnerable website. ImageShare site of my friend. I don’t use websites like this. I just checked it and I found a bug. After my discovery, I looked into that matter. That was deeper than I thought.

Read More...

MySQL + MongoDB + PHP

published on

We used MySQL with PHP… In the past months we try to migrate MySQL tables to MongoDB. And yes it was not a simple method (but we did it).

Now I’ll tell you a simple source of bugs because i have too much fun with this. We have a users table with some fields for example member_type (int). The types already migrated to MongoDB. We fetch the user and we make a query with member_type value but it doesn’t work for us. Why?

Read More...

PHP (and vs. &&)

published on

PHP has two methods which should work the same way. The and operator and the &&operator. But if you do not pay attention your program will be broken.

Read More...