Posts
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>
Magento can't login in admin with right username and password in localhost
- Get link
- X
- Other Apps
If you are having trouble to get logged in with the correct username and password, here are some ideas. If you have used google chrome to install magento, use firefox to open magento and edit the app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory and comment those below lines $cookieParams = array ( 'lifetime' => $cookie -> getLifetime (), 'path' => $cookie -> getPath () // 'domain' => $cookie->getConfigDomain(), // 'secure' => $cookie->isSecure(), // 'httponly' => $cookie->getHttponly() ); And use your credentials to log in. I hope this works for you!!!
Important Sites Bookmark
- Get link
- X
- Other Apps
Curl Examples: - http://www.php.net/manual/en/function.curl-setopt.php . Google Map Script Code: - https://developers.google.com/maps/documentation/javascript/examples/ Jquery Light boxes :- http://www.jquerycode.com/lightboxes/shadowbox-js/ FLV Player Code:- http://www.gdd.ro/free-flash-flv-player/html-code-generator Tinyscrollbar :- http://baijs.com/tinyscrollbar/ Htaccess :- https://gist.github.com/ScottPhillips/1721489 Check best Browser Live :- http://www.browserstack.com/start#os=android&os_version=4.0&device=Motorola+Razr&url=http%3A%2F%2Fsearchandsellfloridarealestate.com%2F&speed=1 Wordpress Genesis Framework: - http://designsbynickthegeek.com/tutorials/genesis-explained-the-framework Audio & Video Player all support:- http://mediaelementjs.com/ All types of sound clip examples: - http://www.bigsoundbank.com/sound-0786-workbook.html Google Autocomplete Address Field :- http://www.f...