Posts
Showing posts from July, 2015
Get langitude and latitude using address in php
- Get link
- X
- Other Apps
<?php $location = 'chandigarh'; $address = urlencode($location); $request_url = "http://maps.googleapis.com/maps/api/geocode/xml?address=".$address."&sensor=true"; $xml = simplexml_load_file($request_url) or die("url not loading"); $status = $xml->status; if ($status=="OK") { $ravilat = $xml->result->geometry->location->lat; $ravilon = $xml->result->geometry->location->lng; } ?> <script src="http://maps.googleapis.com/maps/api/js"></script> <script> function initialize() { var grayStyles = [ { featureType: "all", stylers: [ { hue: '#aaaaaa' }, { lightness: -15 }, { saturation: 99 } ...
Deny all Folder Exclude single folder HTACCESS
- Get link
- X
- Other Apps
PUBLIC HTML ROOT FOLDER HTACCESS CODE <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} /verify RewriteCond %{REQUEST_URI} !(checkacheck/verify) RewriteRule /verify - [F,L] RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule> AddHandler x-httpd-php5 .php AddHandler x-httpd-php .php4 IN WHICH FOLDER WANTS TO ALLOW HTACCESS CODE <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] </IfModule>