Category: PHP

PHP optimization, techniques and practises.

Apache Prefork versus Worker

Prefork: The prefork MPM uses multiple child processes with one thread each. Each process handles one connection at a time. On many systems, prefork is comparable in speed to worker, but uses more memory. Prefork’s threadless design has advantages over…

Remove Apps from Windows 10

Open PowerShell as administrator, Copy and paste one or more of the following commands into the PowerShell prompt, pressing Enter after each one to remove the apps you don’t want on your Windows 10 system: Uninstall 3D Builder: Get-AppxPackage *3dbuilder*…

Plesk/Odin Services Structure

Control Panel Logs Error log: /var/log/sw-cp-server/error_log and /var/log/sw-cp-server/sw-engine.log Access log: /usr/local/psa/admin/logs/httpsd_access_log Panel log: /usr/local/psa/admin/logs/panel.log Services Stop: /etc/init.d/psa stop Start: /etc/init.d/psa start Restart: /etc/init.d/psa restart Configuration PHP config: /usr/local/psa/admin/conf/php.ini Panel config: /usr/local/psa/admin/conf/panel.ini Web server config: /etc/sw-cp-server/conf.d/plesk.conf Web Presence Builder Logs Error…

WordPress Optimization

WordPress is currently one of the most popular blogging/CMS applications. Here are some ideas for optimizing WordPress and reducing the CPU consumption of this PHP script. Make a backup of your account first, and then upgrade to the latest version…

Encrypt and Decrypt for URL Using PHP

Here is the function for Encrypt and Decrypt (String, text, ids) for URL Using PHP. please set change $secret_key and $secret_iv for your wish to generate secure encryption and decryption keys. function encryptor($action, $string) { $output = false; $encrypt_method =…