In this guide you will learn how to install Nginx, MySQL 8.0 and PHP 8.1 and PHP-FPM on Ubuntu 22.04.
continue reading »Tag: php
Build Realtime Apps With Redis PubSub
Last week I worked with Pusher. Pusher is really amazing product to build scalable realtime apps. Also there is slanger and Poxa, Both are open source implementation compatible with Pusher libraries. But today we will use PHP, NodeJs, SocketIO and Redis Pub/Sub To work with realtime messaging.
continue reading »
How To Install LAMP Stack on Ubuntu
LAMP stack is a group of open source software and it stands for Linux, Apache, MySQL, and PHP. To install them Just run the following bash script with a non-root user with sudo privileges configured on a server running Ubuntu.
continue reading »
Boost Youtube Videos Load Time In WordPress
Although it easy to embed youtube videos but you will be surprised of the increase in loading time of your webpage.
continue reading »
PHP Errors Handling
PHP5 introduced exceptions, a completely different way to handle errors. Simply, exceptions like sensors detect any error occur within your code and output a bunch of data to handle these errors. Let’s see how these exceptions work.
How To Test PHP Classes and Objects
PHP provides a set of functions to test classes and objects. These functions allow you to know more information about classes and objects that you are using at runtime. All these functions provided by PHP reflection API but their simplicity make them the first choice.
How To Validate Forms With Laravel Part1
We discussed before form creation with laravel and I think the important thing you need to learn right now is form validation. You should always validate forms to ensure that you receive good data. You shouldn’t trust your clients or they will exploit your application.