Distance Between Cities Calculator PHP Script

Distance Between Cities Calculator PHP Script

Live Demo Download

Screenshots

Overview

Distance Calculator is one of the most important travel tool used by travelers to calculate the distance between cities. This distance calculator will give you the estimated travel distance between the two cities or places along with location map. It is PHP/Javascript/MySQL based script integrated with free Open Street Map (OSM) API using Leaflet JS library and bootstrap CSS framework. OpenStreetMap is a good alternative to Google Maps and allows unlimited free searches. 

This script allows to create unlimited city subdomains and it can automatically redirect US visitors to city specific sub-domain pages. More than 10 thousand USA cities data included in it.

Admin Panel Demo Link: https://distancebetweentwociti...

  • Username: admin
  • Password: 123

Features

  • Using Free OpenStreetMap APIs
  • Unlimited City Subdomains
  • More Than 10 Thousand Cities Data Included
  • Unlimited Searches
  • Responsive Design
  • Admin Panel with easy to add Google Analytics and Adsense Ads Code

Requirements

  • Have a web hosting to upload script files and MySQL Database to run this script
  • Shared hosting with Cpanel

Instructions

  • Login to your cpanel hosting
  • Navigate to Subdomains under the Domains section
  • Create a wildcard subdomain * pointing it to the "cities" folder (Subdomain: * & Domain: yourdomain.com & Document Root: public_html/cities)
  • Open MySQL Databases, create database and give database name like you want
  • Create user for your database
  • Add user to your database and check ALL PRIVILEGES
  • Open phpMyAdmin and select your database
  • Import database file “cities.sql.zip” from download package inside ‘Script‘ folder
  • Open File Manager via cpanel or ftp server
  • Upload all files inside “Script_Files” folder to your folder destination on your hosting
  • you must edit both “db.php” and "admin/db.php" files and replace with your own database configuration data
  • Open admin panel page by opening your website link e.g. https://yourwebsite.com/admin/
  • Default admin panel login details are "username:admin" and "password:123"
  • Login to your admin panel and go to "Settings" menu and change the details according to your website

Download