Tag Archives: PHP

Build Tengine, MariaDB and PHP on Ubuntu 14.04

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, 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 apt-get command. All steps have been tested on Ubuntu 14.04. Install Tengine Install Required Packages Download and Compile the Source Code Set File…

Continue Reading

Difference Between require() and include() in PHP

One of the most common questions I get asked by PHP beginners is, Why is 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…

Continue Reading
Contact Us
  • Room 311, Zonghe Building, Harbin Institute of Technology
  • cshzxie [at] gmail.com