Showing 13 Result(s)
MagicCurl

MagicCurl PHP Library

MagicCurl PHP Library Prerequisites A minimum of PHP 7.3 upto 8.0 PHP cURL extension Installation If your project using composer, run the below command composer require enishant/magiccurl:1.0 If you are not using composer, download the latest release from the releases section. You should download the magiccurl.zip file. After that, include MagicCurl.php in your application and …

WordOps

WordOps Installation with Ubuntu 20.04.2 LTS

WordOps is an essential toolset that eases WordPress site and server administration.   Key Features Easy to install One step automated installer with migration from EasyEngine v3 support   Fast deployment Fast and automated WordPress, Nginx, PHP, MySQL & Redis installation   Custom Nginx build Nginx 1.18.0 – TLS v1.3 Cloudflare HTTP/2 HPACK & Brotli …

Importing and Exporting of MYSQL Database with Command Line SSH

Importing MYSQL Database Syntax $ mysql -u username -p database_name < path_to_mysql_file_here Importing existing MYSQL database with filename "wordpress.sql" stored at directory "/home/nishant/", Username is "root", terminal will prompt for asking password. $ mysql -u root -p wordpress < /home/nishant/wordpress.sql Exporting MYSQL Database Syntax $ mysqldump -p -u username database_name > path_to_mysql_file_here Exporting MYSQL database …

Git and Virtualmin

Introduction to Git Git is a source-code control system that allows multiple developers to work on the same project. Each developer has a copy of the repository on his workstation, and can check in changes to that repository and synchronize it with a central server. Other developers can then fetch those changes by synchronizing their …

Detecting request type in PHP

For detecting request type in PHP we can use variable $_SERVER by using $_SERVER[‘REQUEST_METHOD’]. $_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server. Following methods can be detected with key ‘REQUEST_METHOD’: GET POST PUT DELETE Example: [php] if ($_SERVER[‘REQUEST_METHOD’] === …

What is a WordPress Theme Text Domain ?

In this example ‘my-theme-textdomain’ is the defined as textdomain for the Theme. Text Domain is used to make the Theme translatable. (Codex reference: load_theme_textdomain()). Define the Theme’s textdomain load_theme_textdomain( ‘my-theme-textdomain’, TEMPLATEPATH.’/languages’ ); Define translatable strings in the template. This is done using one of a few translation functions: __() (for returned strings), _e() (for echoed …