X

PHP

How to parse a .env file with PHP

Parsing a .env (dotenv) file in PHP can be done by using a dedicated library or writing a simple custom…

PHP-FPM: php_value vs. php_admin_value directives explained

php_admin_value and php_value are directives used in PHP-FPM (FastCGI Process Manager) configuration, often seen in context with web server setups…

3 Ways to Access Linux ENV Variables from PHP

Accessing environment variables in PHP on a Linux system can be done in several ways, depending on your specific requirements…

How to write an array to an .env file using PHP

In this short guide, I will show you how to write a PHP function that takes an associative array of…

How to Indent Lines in a File using PHP

Indenting lines in a file using PHP code is quite easy. The steps are: Open the file and read its…

PHP Exception Handling Explained with Try, Throw and Catch

Exception handling in PHP is a mechanism that allows you to deal with unexpected conditions (like runtime errors) in a…

Is PHP list() function deprecated in 2023?

At the time of writing this in December 2023, the list() function in PHP is not deprecated. This function is…

X

Headline

You can control the ways in which we improve and personalize your experience. Please choose whether you wish to allow the following:

Privacy Settings