Monthly Archive: February 2012

Get current URL in PHP 0

Get current URL in PHP

Sometime, you need to get a current page URL that is shown in the browser address bar. Here is a small code to get the current url. $url = (!empty($_SERVER[‘HTTPS’])) ? “https://”.$_SERVER[‘SERVER_NAME’] .$_SERVER[‘REQUEST_URI’] :...

Change iframe url using javascript 0

Change iframe url using javascript

If you want to change the iframe url from the iframe window, you can use this small function to change the url of the iframe. <script type=”text/javascript”> $(document).ready(function() { $(‘#clickToClose’).click( function() { window.parent.frames[“myframe”].location.href=’frame.php’; return...

Find latitude and longitude using google map API 0

Find latitude and longitude using google map API

Find coordinates by moving around the map 1. Drag and drop the map to broad location. 2. Zoom in for greater accuracy. 3. Drag and drop the marker to pinpoint the place. The coordinates...