Latest PHP Tutorials and How-To's

cloud

How to Install LAMP (Linux, Apache, MySql & PHP) on Azure with Ubuntu 18.04

In this article step-by-step process is discussed to setup LAMP stack in Azure, with Ubuntu 18.04 as the operating system.
June 24, 2020
cloud

How to Install LAMP (Linux, Apache, MySql & PHP) on AWS EC2 with Ubuntu 20.04

In this article step-by-step process is discussed to setup LAMP stack in AWS EC2, with Ubuntu 20.04 as the operating system.
June 3, 2020
php

Download File from AWS S3 Bucket and Save to Local Server using API (PHP)

This article contains sample PHP code that implement the GetObject S3 API call. It will download a file from a S3 bucket, and save it to local server.
January 28, 2020
php

How to Get List of All Google Fonts using PHP

The list of all Google Fonts can be retrieved using the Google Fonts Developer API.
November 20, 2019
cloud

How to Install LAMP (Linux, Apache, MySql & PHP) on AWS EC2 with Ubuntu 18.04

In this article step-by-step process is discussed to setup LAMP stack in AWS EC2, with Ubuntu 18.04 as the operating system.
November 28, 2018
php

Setting HTTP Cache Headers with PHP

Through the header() function it is possible to set "Cache-Control" and "ETag" headers in a PHP script.
March 13, 2018
php

HTTP Caching for Web Applications - Practical Examples of Cache Headers

HTTP caching can be achieved by sending Cache-Control and ETag headers from the server. This tutorial explains caching through some examples where HTTP headers are exchanged between the browser and the server.
March 6, 2018
php

HTTP Caching for Web Applications - Cache Headers Explained

HTTP caching gives a good performance boost to your websites and applications. Caching can be implemented through a combination of Cache-Control and ETag response headers.
March 6, 2018
php

Verifying Paypal IDs by Implementing Login with Paypal (using PHP)

While asking a user for his Paypal account, it is better to verify it. This can be done by implementing Login with Paypal, and getting the verified ID via API calls.
November 13, 2017
php

How to Create, Update & Delete Spreadsheet with Google Sheets API using PHP

This tutorial explains how to create, update & delete a Google spreadsheet using Sheets API and PHP
October 31, 2017
php

How to Update and Delete an Event with Google Calendar API using PHP

Updating and deleting an event with Google Calendar API. Contains a demo.
October 3, 2017
php

Google Refresh Tokens : Answers to Some Common Questions

This article contains answers to common questions and confusions related to Google refresh tokens.
June 2, 2017
php

How to Install Apache, MySql, PHP & phpMyAdmin on Ubuntu 16 (LAMP Stack)

A tutorial on how to install the latest versions of Apache, PHP, Mysql and phpMyAdmin on Ubuntu 16.04
January 24, 2017
php

How to Upload Files to AWS S3 using API (PHP)

Files can be uploaded to AWS S3 using its REST API. This tutorial contains code snippet to upload files to a given S3 bucket using PHP.
January 18, 2017
php

How to Detect User Timezone in PHP

You need to use the Javascript getTimezoneOffset() method to get the timezone offset in hours, then pass this offset to PHP to detect user timezone name using timezone_name_from_abbr() function.
January 10, 2017
php

How to Add an Event with Google Calendar API using PHP

A tutorial on adding events with Google Calendar API v3 using PHP. Contains a demo.
January 4, 2017
php

Login with Pinterest using PHP

Pinterest OAuth API provides a simple way of integrating "Login with Pinterest" feature in your web application. Through this you can implement login and signup in your website. This tutorial explains the implementation of the login process using PHP.
December 27, 2016
php

Login with Instagram using PHP

Instagram OAuth API provides an easy way of integrating "Login with Instagram" feature in your web application. You can implement login and signup with Instagram in your website using PHP. You can also fetch data of the user such as name, picture etc.
December 22, 2016
php

How to Execute a Script at Specific Time, Only Once, using PHP

Sometimes it is required to execute a PHP script at a given time, only once. Instead of using a cron job, schedule it through Linux "at" command.
December 13, 2016
javascript

2 Ways of AJAX File Upload - FormData and FileReader

A file can be uploaded with jQuery in 2 ways. The first method is implemented using FormData where a multipart/form-data POST request is sent. The second method is uploading using FileReader where a normal POST request is sent.
November 25, 2016