How to display image from file using PHP

A handy guide on how to display image from file using PHP, from extracting image data and output directly to the browser, or by img HTML tag.

How to copy files using PHP

Helpful in-depth guide on how to copy files using PHP, using multiple methods: copy(), fwrite() and shell_exec().

How to convert from array to string in PHP

Short guide on converting from array to string in PHP easily that works.

How to convert from string to array in PHP

A short guide on how to convert from string to array in PHP, using explode() function.

3 ways to get PHP memory limit value

Knowing PHP memory limit helps on optimizing it for your PHP application. This article will guide you on how to quickly get PHP memory limit value.

How to set timezone with PHP easily (multiple methods)

Helpful guide to set timezone with PHP easily by multiple methods, from using functions, DateTime object to server-side methods like php.ini.

How to set MySQL charset (or MariaDB) by PHP

To quickly set MySQL charset (for example, to utf8mb4) using PHP for the current database connection session, you must first have access to the connection

How to remove empty array elements using PHP

A handy short guide on how to remove empty array elements using PHP, using array_filter() function, along with callback detailed examples.

How to convert image to base64 using PHP

Helpful guide on how to convert image to base64 using PHP, benefit and drawback of using image as base64, and multiple ways to achieve that.

How to detect visitors by country using PHP & GeoIP

A handy guide on how to detect visitors by country using PHP and GeoIP, as well as, distribute and block them on country-based.

How to get user IP address using PHP

Short and useful guide on how to get user IP address using PHP. Including tips if the server is under proxy DNS, like CloudFlare.

Showing page 1 of 2 (17 total items)