PHP

PHP is a popular general-purpose scripting language that is especially suited to web development PHP originally stood for Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor.

www.php.net

Change MySQL data directory in PHPMyAdmin

In a recent article, I discussed many methods for removing the large ibdata file, one of which involves transferring the MySQL data directory to a different partition. However, if you do so, you must also inform PHPMyAdmin of the location of the...

Max retries has been reached, 503!

503 Service Unavailable error on a shop hosted on shared cPanel server, apache error log: tail /usr/local/apache/logs/error_log 2022-04-29 11:04:21.728438 [T0] [31.32.33.34:49768-H3:3D8F707E6843B0DF-0#APVH_XXXXXX.com:443] Max retries has been...

How to hide PHP version in the HTTP Header

The x-powered-by option is included within the HTTP response header by default, which reveals exactly which version of PHP your site uses. So that not everyone else knows that we are using PHP or maybe an older version of PHP, we can hide this...

Increase file size and number of uploads limits in PHP

Here I will cover two approaches to increase file size and number of uploads limits in PHP: using the .htaccess fileusing the php.ini Why you should use .htaccess file As always, I recommend utilizing the. htaccess file because the directives will...

Change Folder Permissions using PHP

Sometimes it’s useful to enable visitors to your site to upload content, for example, photos, which can then be displayed on the site. Folders on a website, for example, an images folder will typically have permissions of 755, which means that...

PHP 8.1 Contributors

What’s new in PHP 8.1

25.11.2021 -exactly a year ago since the release of PHP 8.0 the version 8.1 is rolled out, and with it, new features and a significant speed increase. From the point of a Webmaster that uses Laravel or WordPress, it’s important to note that 8...

PHP handlers Compared

In plain English: PHP handlers are Apache modules that interpret and run PHP code. Using right PHP handler on your website can have a huge impact on the overall performance. In cPanel you can have different PHP versions with different handlers for...

Display the last modified file in directory in cPanel ☑️

From the terminal (SSH): grep -Ril "find /home/username/public_html/ -type f -mtime -2" From a .php file: <?php $last=shell_exec('grep -Ril "find /home/username/public_html/ -type f -mtime -2"'); echo "<pre>$last</pre>"; ?> The output will...