Replace mcrypt_encrypt with openssl_encrypt

Simple Example : $encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $this->key, $input, MCRYPT_MODE_CBC, $iv); $encrypted = openssl_encrypt($input, 'AES-128-CBC', $this->key, OPENSSL_RAW_DATA, $iv); More Details Click here http://php.net/manual/en/function.mcrypt-encrypt.php http://php.net/manual/en/function.openssl-encrypt.php

Get City Name Using Google Geolocation

<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.3.js"></script> <script type="text/javascript">     navigator.geolocation.getCurrentPosition(success, error);     function success(position) {         var GEOCODING = 'https://maps.googleapis.com/maps/api/geocode/json?latlng=' + position.coords.latitude + '%2C' + position.coords.longitude + '&language=en';…