Php and directory listing

has thousand of useful built-in functions. But it lacks in directory listing. Listing files by creation date can be an awful experience. How can be possible for such a great language like PHP to not have this kind of built-in parameters for scandir or readdir functions? They implemented SCANDIR_SORT_ASCENDING and SCANDIR_SORT_DESCENDING for alphabetical file ordering, but if we want date order we MUST use a custom not efficient array sorting method.

Very bad.

Mobile Safari percentage bug

Dear Apple…

Why Safari on iOS mobile devices is a so shitty product?

Why can’t we specify “width: 100%” on an image element (with auto height) without having to set a useless “min-width: 100%” for the most browsers?

Why this very serious bug?

Obviously the HTML I was developing had the following meta:

[code lang=”html” title=”HTML”]
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

But it seems to be not enough for Safari. So we have to write the following useless CSS code:

[code lang=”css” title=”CSS”]
img {
width: 100%;
min-width: 100%;
height: auto;

I hope this will be fixed soon, but I think they will not do it. The bug is very old and still there… Good job Apple!


  1. first report (2006!!!) –
  2. old report –
  3. the solution: (the only working solution is the last one with 0 score!)