Home » PHP (page 2)

PHP

PHP Json Encode And Decode Example

Json is an abbreviation for JavaScript Object Notation. It is a lightweight format that is used for data interchanging. It is based on a subset of JavaScript language (the way objects are built in JavaScript). In this example we will create a simple or trivial web app that shows us how to manipulate Json with PHP( Encode and decode Json ...

Read More »

PHP Google Geocode Example

In this example we will explain Google Map Geocoding, what it means and how we can manipulate the Google Map Geocoding API. For this example we will need: A computer with PHP >= 5.5 installed notepad++ 1. Getting Started Lets start by defining Google Map. According to wikipedia, Google Maps is a web mapping service developed by Google . It ...

Read More »

PHP Google Maps Example

According to wikipedia Google Maps is a web based mapping service developed by Google. It offers satellite imagery, street maps, 360° panoramic views of streets (Street View), real-time traffic conditions (Google Traffic), and route planning for traveling by foot, car, bicycle (in beta), or public transportation. Google Maps provides detailed information about geographical regions and sites around the world. In ...

Read More »

PHP Export to Excel Example

It can become neccessary to export data to a browser in excel format or just create an excel document from data received from a database or any other source. In this example we will create a (PHP) web app that exports data to excel. For this example we will use: A computer with PHP >= 5.5 installed notepad++ Microsoft Excel ...

Read More »

PHP, Ajax and Mysql Example

Ajax is a powerful web technology, it allows a web app’s communication with a server, without having to refresh the browser. MySQL is a relational database that allows users to store and retrieve data. It is a free available open source Relational Database Management System (RDBMS) that uses Structured Query Language (SQL). According to the official PHP website, PHP (recursive ...

Read More »

PHP File Upload Example

File uploads has now become an integral part of many, if not all social apps (both web apps and mobile apps). The ability to view, upload and share pictures, videos and other media types are components of a viral social app. For this singular reason most web masters and app developers incorporate file uploads into the social apps they develop. ...

Read More »

PHP Connect To Mysql Tutorial

In this example we will learn about database systems, mysql and how PHP scripts can talk to a Mysql database. For this example we will use: A computer with PHP >= 5.5 installed Mysql server notepad++ Phpmyadmin: This is not compulsory. (All the codes in this example will work correctly even without it). If you want a graphical user interface ...

Read More »

PHP Base64 Encode/Decode Example

Encoding in base64 simply involves converting binary data to ASCII text. Encoding in base64 is done so as to easily and effectively transfer binary data over a network. One of its use case is transferring data in emails. In this example we are going to learn how to encode and decode data in base64 using PHP. For this example we ...

Read More »

PHP Beautifier Tools Example

In this example we are going to examine some tools that will beautify or properly format PHP source code. It can become neccessary to do this, if source code has been minified or wrongly formatted. Below we present some other reasons you might need a source code beautifier: You’ve downloaded an unreadable script: You are about to develop a particular app ...

Read More »