PHP: What is the difference between require and include?
PHP has no fewer than four constructs for including a file. Behind them, however, there are only two independent decisions.
PHP: What to do about "Allowed memory size exhausted"?
Fatal error: Allowed memory size of 8388608 bytes exhausted
(tried to allocate 12288 bytes)
The first answer you find for this is: raise the limit. Sometimes that is even right. Usually, though, it is a reaction to a file being loaded into memory in one piece when it could have been read line by line — and the difference is a factor of a thousand.
PHP: When do you use self and when $this?
Inside a PHP class there are two ways to reach your own class: with $this->
and with self::. The basic rule is quickly explained. It gets interesting with
the third keyword, which most people overlook.
Debugging PHP code in PhpStorm (with Xdebug)
PHP can run in a number of different contexts — as a command line application (CLI) or as an Apache module, for example. Depending on the context, different steps are needed if you want to debug the PHP code being executed.
PHP: How to write a message to the console (stdout / stderr)
PHP can run in a number of different contexts — as a command line application (CLI) or as an Apache module, for example. Depending on the context, the logging functions behave differently.
PHP: How do you remove an element from an array?
If you want to remove a particular element from a PHP array with consecutive numeric indices, there are a few things to watch out for. There are also several ways to go about it.
How to find the cheapest Netcup offer
Netcup* is a hosting provider from Germany, known above all for its inexpensive virtual servers and web hosting products. Netcup* has a very broad product range, and individual products often come in several different tariffs on top of that. Finally, special products and tariffs keep appearing as part of promotional offers. This article explains how to find the cheapest offer for you among all those possibilities.
Hetzner vs Netcup 2021
Hetzner and Netcup* are two hosting providers from Germany. Both have been renting out virtual servers for many years. In this article we compare their current offerings in terms of cost and performance, using a whole range of benchmarks.
CSS: Which font format is best to use in 2021?
You can embed and use your own fonts on a website. By now there are countless font formats and types, but only the woff2 format really matters (or its predecessor, the woff format).
PHP: Find out whether a string contains a word
You often face the requirement of determining whether a particular word occurs in a given string or not.