PHP: The 3 Pillars of OOP

Object-Oriented Programming (OOP) is a programming paradigm that is centered around the principle of objects. Objects are instances of classes, which are templates that define the properties and methods that an object can have. OOP is based on three main pillars: Encapsulation, Inheritance, and Polymorphism. Encapsulation Encapsulation is the principle of hiding the internal workings of an object... Continue Reading →

Abstract vs Interface in PHP

Interface Allow define methods should be implement in a class When one or more classes use same interface, it's called "polymorphism" What interface does Can't have properties All methods must be public By default all methods are abstract Abstract A class with abstract methods, and need its children classes to fill out Abstract method is... Continue Reading →

How to install php extension using pecl for specific php version, when several php versions installed in system

$ pecl -d php_suffix=5.6 install <package> $ pecl uninstall -r <package> $ pecl -d php_suffix=7.0 install <package> $ pecl uninstall -r <package> $ pecl -d php_suffix=7.1 install <package> $ pecl uninstall -r <package> The -d php_suffix=<version> piece allows you to set config values at run time vs pre-setting them with pecl config-set. The uninstall -r bit does not actually uninstall... Continue Reading →

Debian [Ubuntu/Raspbian] installation script

git clone https://github.com/jooservices/workspace cd workspace chmod +x install.sh Follow script for installation https://github.com/jooservices/workspace Xubuntu 20.04 for lightweight purpose Update & install required packages sudo apt update && sudo apt -y upgrade sudo apt -y install software-properties-common sudo apt -y install curl git unzip perl libnet-ssleay-perl openssl openssh-server libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python Web server sudo apt -y... Continue Reading →

Pages: 1 2 3 4

Pi 4 – Install PHP 8

Bash script https://github.com/jooservices/workspace sudo pecl install redis sudo pecl install pcov

Setup Ubuntu 20.04 Workspace [Archived ]

Update system after installed sudo apt update && sudo apt -y upgrade Install required packages sudo apt -y install software-properties-common sudo apt -y install curl git unzip perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python curl openssh-server Redis & Memcache sudo apt -y redis redis-server redis-tools memcached MySQL 8.0 sudo apt -y install mysql-client mysql-sandbox... Continue Reading →

Pages: 1 2 3 4

XGalleryCli 3.1.0

Major release with improvement & new features https://github.com/jooservices/XGalleryCli/releases/tag/3.1.0 Better and solid structurePrepare now wrapped by the parent class. Use method prepareName method will be applied as prepare stepsProcess now wrapped by the parent class. Use method processName method will be applied as process stepsPrepare and Process will be called automatic with better render outFix Symfony... Continue Reading →

Original link https://www.chriswiegman.com/2011/10/fastcgi-vs-suphp-vs-cgi-vs-mod_php-dso/ One question I see come up often for users setting up their own web servers involves how they run PHP. Nearly everyone I know who runs their own server has questions about this that usually fall in one of two areas. First, they have installed WordPress, Drupal, or another CMS and can’t get uploads to work... Continue Reading →

How to develop on Windows Subsystem for Linux ( Ubuntu )

Bài viết này sẽ dành cho các bạn developer sử dụng Windows ( khá nhảm nhưng thôi cứ xem là vậy ) và cần sử dụng Linux ( Ubuntu ) như 1 environment. Thật ra mà nói trên cơ bản thì ta vẫn sử dụng Linux như "server", chỉ có 1 vài thứ khác như... Continue Reading →

Update system after installed sudo apt update && sudo apt -y upgrade Install required packages sudo apt -y install python-software-properties sudo apt -y install software-properties-common MySQL sudo apt -y install mysql-server mysql-client mysql-workbench mysql-sandbox mysql-utilities mysql-testsuite sudo mysql_secure_installation sudo mysql ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; FLUSH PRIVILEGES; sudo apt -y install apache2... Continue Reading →

Pages: 1 2 3

Up ↑

%d bloggers like this: