Tag Archives: PHP
Introduction Nginx is one of the most popular web servers in the world and is responsible for hosting some of the largest and highest-traffic sites on the internet. Tengine is a branch of Nginx which is created by Alibaba Inc. MariaDB is a database server developed by some of the original authors of MySQL and offers drop-in replacement functionality. Prerequisites Before you begin this guide, you should have a regular, non-root user with sudo privileges configured on your server. We will build all components from the source code. Of course, it's OK for you to install them using the apt-get command. All steps have been tested on Ubuntu 14.04. Install Tengine Install Required Packages Download and Compile the Source Code…
One of the most common questions I get asked by PHP beginners is, Why are there 4 ways to include a file on your page? There is include(), include_once(), require() and require_once(). What do these do? What's the difference between them? In this article, we're going to look at all these different functions and will talk about an example of when you need to use each of them. include() The include function is used in PHP when you want to include a file within the current process. It takes one argument which will be a string to the file path you want to include. The code inside the included file will then run when the include function is called. This…