Installation Guide: Laravel + InfyOm + Docker

Step-by-Step Guide: Laravel + InfyOm + Docker 1. Install Laravel (Correctly) First, create a new Laravel project: composer create-project –prefer-dist laravel/laravel my-laravel-app Then, move into the project directory: cd my-laravel-app At this point, your folder structure should look like this: my-laravel-app/ │── app/ │── bootstrap/ │── config/ │── database/ │── public/ │── resources/ │── routes/ Continue reading “Installation Guide: Laravel + InfyOm + Docker”

How to update php cli in DirectAdmin

Check the current version PHP CLI version in shell From the official DirectAdmin help page ,https://help.directadmin.com/item.php?id=2094 the way to install multiple version of PHP in the machine. Set the php1_release to the version The version to set as the php1_release will be the version in CLI You may modify the /usr/local/directadmin/custombuild/options.conf Re-compile all the PHP Continue reading “How to update php cli in DirectAdmin”

System error ‘[security.WindMcryptCbc.encrypt] extension ‘mcrypt’ is not loaded.’.

I don’t like error, but I have to fix the error, I note down here to do reference. I’m using CentOS 7, I think cause by upgraded from PHP 5 to PHP 7. I’m using DirectAdmin. What I found from internet The mcrypt extension has been abandonware for nearly a decade now, and was also Continue reading “System error ‘[security.WindMcryptCbc.encrypt] extension ‘mcrypt’ is not loaded.’.”

How To Get Parent Category Name In WordPress

It is not difficult to get the name using the build in function from WordPress. You may use this for build your own plugin or list out the related post using the category data from the parent category. Here is the PHP Code that can display out the name of the parent category.

Create WordPress widget template from scratch

I’ve save down the most basic widget code for WordPress, you can copy this to your plugin and modify it to start your first widget. You can save time on this tutorial to help you create wordpress widget from scratch. <?php class example_widget extends WP_Widget { function __construct() { parent::__construct(false, $name = ‘Example Widget’); } Continue reading “Create WordPress widget template from scratch”