common-sense

Is storing image paths in a database necessary?

First, I noticed there are many questions regarding this, lots marked as duplicate. I eventually came to this one. And the accepted answer for that question although partially solves my question, it doesn't answer all of it. My question is, a user uploads an image. I store the path in the database and the image file in the file system...

[PHP] Which method of variable setting is better?

So just to better myself I'm wondering which method is better for setting a variable: Code: http://pastie.org/private/jkw9dxplv0ixovvc0omq Method 1: Set the end variable in the if statement -OR- Method 2: Set a default variable and only change it's value if needed. I hope this makes sense. Thank in advance! ...

Tactful ways of dealing with people who glob unrelated issues together in an email chain.

So I think everyone has had this. You have an email chain talking with a group of people about Project/issue X. A lot of discussion is going on about it, then someone interjects and asks if you can quickly solve A, B, C for another project. Once that is done, the flood gate is open and well the email chain is now pretty much garbage b...