If you want to read all the files a zip file contains and extract those files to a location on your computer then you can do the following. First of all make sure that the zip package is included in your PHP distribution. I use Windows so Windows users can just uncomment the entry for … Read more
If you want to know when GoogleBot visited your website recently you can use any of the following ways to do so 1. Go through your web logs which Apache/IIS generate for your website. Scan for GoogleBot. A very crude way indeed. 2. If you have signed up for Google Sitemaps then you can login … Read more
Downloading a file is easy but what if you had to download a file through your page and save it on our machine. Well here goes. We use our friendly CURL library in PHP for this. You can use the following code to download and save the file on your machine <?php $ch = curl_init(); … Read more
AJAX is a wonderful technology that provides the visitor with a “no refresh” experience on the web. With the advent and popularity of Web 2.0 this technology is making progress by leaps and bounds. If you would like to verify whether a user is registered on your website or not then you can use the … Read more
A client of the company I work for pointed out a problem in which some how the SSL version of his website got indexed into Google and other search engines. Now this posed a problem for the client as search engines don’t rank web pages well which can be referenced from two or more different … Read more
You can get the latest browscap.ini file from the following website. http://tempdownloads.browserscap.com/ After downloading the file you can copy the file to your system WINDIR/system32/inetsrv folder and start using it.
If you have ever come across form validation in HTML then you will have come across the issue of visitors inputting white space in the form controls and submitting it which does not serve any purpose to the client. Not only that this could also be seen as a potential vulnerability by spammers. So the … Read more