New answers tagged

1 vote
Accepted

Search between dates in a WP Query

Thank you for your answers :) In the end I have solved it by performing a first query where I perform the first filtering and on that array, I perform the second query between the selected dates. <...
1 vote

Preventing PHP SQL injection on login

let exceptions bubble up ...
  • 9,130
3 votes
Accepted

Calculate cost of standard or express delivery

I wouldn't bother declaring the inverse boolean variable $standardShipping. If you like seeing the explicit variable, that's fine too. I don't think I support the ...
  • 8,369
1 vote

php flock with timeout (for LOCK_SH / LOCK_EX )

I think this function looks good. Your choice of variable names is good. I'm not an expert on file locking, but, although valid code, I don't like the for (;;) ...
2 votes
Accepted

GPG class for AJAX calls

My opinion is that variable variables and variable function/method names should be avoided as much as possible (I nearly want to say: "NEVER use them"). These features often have a negative ...
  • 8,369

Top 50 recent answers are included