Php

Should I Learn PHP in 2021? Is it Still Worth it?
Should I Learn PHP in 2021? Is it Still Worth it?

Sep 23, 2021

Hello guys, Today I am going to talk about my personal experience of still using PHP for backend web development. I started web development in 2016 and at that time I learned PHP as a backend development language. In between 2016 ...



Laravel - convert pdf to image
Laravel - convert pdf to image

Aug 27, 2021

Convert a pdf to an image This package provides an easy to work with the class to convert PDF's to images. Requirements You should have Imagick and Ghostscript installed. Installation The package can be installed via composer...



Laravel convert markdown (md) to html
Laravel convert markdown (md) to html

Aug 26, 2021

Parsedown for Laravel This package is a Laravel wrapper around Parsedown. If you want to know more about Parsedown alone check out our base repository. Features Blade Directive Configuration File Helper Function In...



How to deploy my own laravel 8 project to ubuntu with nginx
How to deploy my own laravel 8 project to ubuntu with nginx

Aug 15, 2021

LaraSail is a CLI tool for Laravel to help you Sail the Servers of the DigitalOcean You'll need a DigitalOcean Account before getting started (Signup here), then you'll need to create a New Droplet. Make sure to select Ubuntu Ser...



How to generate dynamic sitemap in Laravel
How to generate dynamic sitemap in Laravel

Aug 15, 2021

Hello, I usually use the following package for all of my sites to generate the sitemap.xml file automatically: https://github.com/spatie/laravel-sitemap The setup goes something like this: First install the package...



Deleting an element from an array in PHP
Deleting an element from an array in PHP

Aug 13, 2021

There are different ways to delete an array element, where some are more useful for some specific tasks than others. Table of Contents Deleting a single array elementunset()\array_splice() methodDeleting multiple array...



How can I sanitize user input with PHP?
How can I sanitize user input with PHP?

Aug 13, 2021

It’s a common misconception that user input can be filtered. PHP even has a (now deprecated) “feature”, called magic-quotes, that builds on this idea. It’s nonsense. Forget about filtering (or cleanin...



How can I prevent SQL injection in PHP?
How can I prevent SQL injection in PHP?

Aug 13, 2021

Use prepared statements and parameterized queries. These are SQL statements that are sent to and parsed by the database server separately from any parameters. This way it is impossible for an attacker to inject malicious SQL...



Backup MySQL database with CodeIgniter
Backup MySQL database with CodeIgniter

Aug 13, 2021

Use the following code to create the .zip file of your database and download. $this->load->dbutil(); $prefs = array( 'format' => 'zip', 'filename' => 'my_db_backup.sql' ); $backup =& ...



Real-Time (one to one) chat using Ratchet PHP WebSockets and Angular
Real-Time (one to one) chat using Ratchet PHP WebSockets and Angular

Aug 13, 2021

Hello everyone, I am going to implement realtime (live chat) private chat feature using php websockets. I have published a article article for same with basic functianility and in this article I am going to cover things in more de...



Laravel backup – A modern backup solution for Laravel apps
Laravel backup – A modern backup solution for Laravel apps

Aug 13, 2021

This Laravel package creates a backup of your application. The backup is a zip file that contains all files in the directories you specify along with a dump of your database. The backup can be stored on any of the filesystems...



A mail driver to quickly preview mail
A mail driver to quickly preview mail

Aug 13, 2021

Table of Contents InstallationConfiguring the mail transportRegistering the preview middleware routePublishing the config filePublishing the viewsUsagePreview in a web browserEventsMaking assertions against sent mails Install...



Breadcrumb for Codeigniter 3
Breadcrumb for Codeigniter 3

Aug 13, 2021

Demo – https://demo.domprojects.com/ci-breadcrumb/ Table of Contents InstallationLibrairie CI-BreadcrumbUtilisationFolder controllersFolder viewsResultDefault style (without style)Bootstrap style Installation Downl...



How to get WordPress rest api post with category and tag name ?
How to get WordPress rest api post with category and tag name ?

Aug 13, 2021

To get post with category name and tags name we need to add following code into functions.php file. Please copy and paste this code at the bottom of the page – function add_category_info_in_post() { register_re...



Php real-time private chat using WebSockets
Php real-time private chat using WebSockets

Aug 13, 2021

  Hello everyone, In this article I have implemented realtime private chat using php Ratchet PHP WebSockets. This is a basic demo application to show that how things are working. You can download of clone application fro...




Follow Us

Follow us on facebook Click Here

Facebook QR
Scan from mobile
Join our telegram channel Click Here
Telegram QR
Scan from mobile