PHP Code Samples

Web Scraping with PHP – Tutorial to Scrape Web Pages

A short note on web scraping with a working software tool to scrape content with an URL. ...

June 5th, 2023

Live search in PHP and MySQL with AJAX

A simple guide for getting started to create a live search in PHP and MySQL with a suitable example code will give a good idea about impleme ...

March 9th, 2021

PHP Pagination MySQL Database Example Script with Previous Next like Google

The code for PHP pagination with previous next navigation links and also with a Goto option to jump directly to the page via form submit. ...

December 5th, 2019

How to Create Custom Image File Explorer in PHP

PHP image file explorer will give wide range user of requirements who wants to browse image files with different web interface or views. ...

June 3rd, 2019

How to Generate Initial Avatar Image from Username using PHP Dynamically

How to generate initial avatar image dynamically using core PHP for the username accompanied with free downloadable code. ...

February 20th, 2019

How to Crop Image using jQuery and PHP

Cropping is an action to cut a selected portion from the original image. Image editor software like Photoshop will always have the crop tool ...

August 9th, 2018

Object-Oriented Poll System using PHP

Object-oriented programming is used to design, develop and implement many simple as well as complex applications. We have already seen objec ...

March 27th, 2018

Show Image Thumbnail by YouTube Video URL using PHP

Thumbnails are used for preview a single or group of media entities in a single explorer window. By showing thumbnails, we can have a shortc ...

February 27th, 2018

Star Rating with PHP and jQuery AJAX

The star rating ranks pages, articles, or posts published to the end user. This will help the user to identify and shortlist quality content ...

January 22nd, 2018

Extract Content using PHP and Preview like Facebook

While sharing URLs, if the client automatically extracts the title and image to post it as a preview, then that would be nice. On many socia ...

December 15th, 2017

↑ Back to Top