Cannot delete files/folders with www-data user owner?

Unfortunately not all hostings give you shell access and some of them are even screwed up and you end up with folder and files you cannot delete. The server doesn’t run the php scripts as your user but as global user for example www-data. Because of that you have no permission to delete or rename the files the server made and so you are stuck and forced to call to the unwilling support, send them ticket and wait ages ;(

Or you can help your self and write one line in php and delete the bewitched folder, like so:

exec('rm -rf /var/www/vhosts/');

Be extremely careful and provide the right path to the folder you really wanna delete!
Run the script once.

Zachraň – nice and tidy

Oki, lets show off a bit..

I’ve just finished new website. Though I haven’t designed the website, the transformation from the picture to a working interactive graphic is ..ehm, my work… I mean all the custom coding ;)
The web runs on WordPress as usual and the front-end scaffold part is nicely done in Bootstrap, obviously ;)

The result looks nice and tidy don’t you think?

Zachraň jídlo

Count even more precisely

Some people are crazy about character numbers while their write their stories. They do not want to know the actual sum of letters only but also count number of letters partially.


Download the  Wordpress plugin “Content character count live” from repository.

Character count live plugin WP 4+ ready

WordPress updated tineMCE editor from version 3 to 4. Which brings backwards incompatibility. The Character count live plugin live reflects that as well. Now compatible with last WordPress.

Responsive background images

Responsivity is a big issue nowadays with all the phone users browsing your website rather than taking their laptop here and there.

We all know how to use responsive images already, that is not that big issue if you don’t check this post on CSS tricks out. But what if you need responsive background images, well even that is not that big issue, for more check this out on Smashingmagazine. But!
What if you need dynamically defined background images? We can’t define all the possible background images for all possible divs we might have now and then in the bare CSS file beforehand.

Why do we need dynamically defined images?