Tag Archives: PHP

How to Secure LAMP Stack

LAMP stack is a widespread group of software that consists of Linux OS, Apache web server, MySQL or MariaDB database management system, and PHP server side scripting language. Of course, server side protection is a rather vast topic that cannot be fully investigated within a single article. This article just covers the basics of LAMP components protection.

To protect Linux:

  • Use key authentication instead of password authentication whenever possible.
  • Change the port sshd is listening to; it is recommended that a port higher than 1024 is used.
  • You should consider using iptables or fail2ban firewall. More →

Benefits of using CakePHP framework

CakePHP is a free open source PHP framework for rapid web-application development that provides you with all necessary tools making your application logical. In such a way it releases you from monotonous work in website development. Instead of re-inventing the wheel each time you create a site you can just make a CakePHP copy with the new project-specific settings.

Generally, experienced users identify the following advantages: More →

Twig template engine benefits

The most popular template engine today is PHP. However, sometimes developers need a more flexible and functional template directed instrumentation. Here Twig comes to the aid!

Most famous modern engines drop behind Twig for many reasons. Basically, they offer a very limited syntax (variables and loops only). Most of them are also quite slow, because they do not use caching, and just parse patterns on regular expressions which is known to be quite resource-intensive process.

Twig offers a safe, short and full-featured API inherited from the famous Jinja template system. But what makes Twig so powerful? More →

What is Laravel?

Many web-developers think application deployment should be creative and interesting process without causing considerable inconvenience. But is it possible? Fortunately, Laravel can make this dream come true!

Laravel is a convenient and user-friendly PHP framework. It frees you from the unwieldy spaghetti code and helps to create great web applications using simple and intuitively obvious syntax. This PHP 5.3 framework describes itself as ‘A Framework For Web Artisans’. In the judgment of its author, Taylor Otwell, Laravel tries to give the joy of programming. It is: More →

Memcache vs memcached: what is the difference?

Many people (and not only newbies) confuse memcache with memcached because of the names similarity. Let’s investigate the difference between these popular tools.

Some users think that memcache and memcached are both caching services, but it is not true. In fact, there is only one hash table based data caching service, and it is called Memcached. Using a client library it allows you to cache data in RAM of available servers.

But what is memcache then? More →

HTML or PHP on CMS website. Pros and cons

Initially all the websites were created with the help of HTML. Today it is also popular to create sites on PHP technology. So what is the difference between them? Let’s examine pros and cons of these script languages.

HTML website pros:

  1. HTML is perfect for small companies’ sites. HTML is also useful for creating web business cards with no dynamic content or for those pages which are not going to be updated after creation.
  2. Due to light weight as well as fast loading these sites are very easy to be found in search engines. They are simple and minimalistic, which are not the least of the factors as it is difficult to get lost on such sites.
    More →