Subesh Pokhrel's Blog – Magento Development Tips,PHP,Google Maps
PHP & Magento Tips & Tutorials

On doing one of my project, I came across this situation when I need to find out whether the domain name supplied by the user is available or not? I then came up with a solution, here’s is what I did. But before that let me explain somethings. There is something called WHOIS LOOKUP. WHOIS LOOKUP is action relating to look on official WHOIS database server for the information related to domain name.

Continue reading “Checking if the domain is registered or not ?” »

  • Share/Bookmark

I was just adding my site on Alexa and in some minutes Alexa generated a thumbnail of my html site. And again it was same with blog catelog. So I thought is there any PHP code that crawled the site and generates its image thumb? After a lots of research I came out with these. Remember, this only works in windows server.
There is one thing called IECapt.exe ( A Internet Explorer Web Page Rendering Capture Utility). This renders the page and generate thumbnail of it. You can download it from IECapt.exe. And to run that through php here’s the code.

Continue reading “How To Generate Thumbnail of HTML Pages” »

  • Share/Bookmark

I could not stop myself from posting this blog post, because it has been over four weeks I launched this site and its Alexa ranking has improved by 24 million in three days interval. As I first started it was around 29 Million. After a week it went to 25 million figure, it was 25,214,769 on 5th June to be specific . And today on 8th June it has 1,996,306 ranking. So in three days the ranking took a 24 million leap. I don’t know if its natural or “alexaral” but there is no any other pleasure for those people, who keep on looking for their page rank or alexa rank of there site like me, to have such a giant leap.

  • Share/Bookmark

Most of us, programmer have conditions of calculating the difference between timestamps, i.e the difference between now and the timestamp from mysql result. The logic for this is pretty simple. Just convert the two timestamps to Unix time format and take the difference between the two. Next convert the difference into corresponding days,hour,minutes or in any unit you want to.

Continue reading “Calculating the difference between timestamps in PHP” »

  • Share/Bookmark

Facebook 1yr old and F8 – applications 1,000,000,000!

Posted on May 23, 2008 | Comments Off

On the first year of facebook platform released (May 24th) it has been announced that 1,000,000,000; yes, 1 Billionth application has been installed. No doubt it is the most powerful channel for software distribution.

  • Share/Bookmark

Do You Know Which Sites have 10 Page Rank (PR)?

Posted on May 23, 2008 | Comments Off

It is no less gift for a Google Page Rank toolbar viewer to see their PR go up. My page is just starting and you should know that my PR is 0 :( .

Continue reading “Do You Know Which Sites have 10 Page Rank (PR)?” »

  • Share/Bookmark

I was so frustrated during one project where I need to find out the geological latitude and longitude of the place, with the help of Google Maps. So I googled a lot and came up with a function function (overlay,point).On calling this function on mouse click event the latitude and longitude are returned as point.lat() for latitude and point.lng() for longitude. This is the source code just the javascript part.
[UPDATE DEMO]

Continue reading “How To Get Latitude and Longitude of a Place Using Google Maps” »

  • Share/Bookmark

To get a simple Google Map for you website its, pretty easy actually. Just go to http://maps.google.com/maps/api_signup and input the necessary details then you will get a sample code for a simple google map. The Sample code is just like this.

Continue reading “Google Map With Zoom and Map Type” »

  • Share/Bookmark

I have finally Finalized the Theme For My Site

Posted on May 5, 2008 | Comments Off

This is to tell the viewer that, I have finally finilized the theme for my site. And am now On to the blogging business. So you will not have to wait a long time before i post my first real post. :D

  • Share/Bookmark

Search engine optimization by SEO Design Solutions