Archive for the ‘PHP’ Category

PHP browser detection

As a designer I have to constantly deal with different browser’s compatibility. I am sure that among the web designers, MSIE is hated from everyone :) The average user doesn’t know of the existence of these problems and part of our work is to keep them unaware. So I’ve made myself, what I call advanced php browser detection. Well user-agent check can’t be that advanced, but still it’s more than what I’ve seen here and there. (more…)

AbyssGuard – php anti-spam script

What is AbyssGuard?

It’s a PHP script that stops bad robots, spammers and other unwanted entities before they can even load your website. It can be implemented in every website and it’s free! You just need access to your hosting and web server with php support. No databases needed. Even if you think that your website is small and nothing special, if it’s indexed in Google, it will be targeted. Note that this is website protection not server one, if you want to protect your server – configure your firewall. (more…)

Dynamic CSS variables with PHP

Writing CSS can be hard work and the dynamic variables are sometimes just needed. There are options like LESS CSS, but they need client side JavaScript in order to work and this isn’t something I am comfortable with. So here is one other options to make the designers life easier :)

It’s pretty simple actually. There are plenty of things you can use it for, to simplify the editing of bigger CSS, for use in multiple designs or multi domains and so on. So here is how you can do it, first of create a PHP file to serve your CSS content, and add it to your website’s header, something like that: (more…)