Example code of Google Recaptcha implementation with php curl

Abdul AwalArticles, Web DevelopmentLeave a Comment

Google reCaptcha is the most used captcha for preventing spam on web forms. Its a very useful thing to keep website, specially the forms which works with data. If you want to know more about recaptcha, please visit the reCaptcha website. Installing and using reCaptcha is easy and google already has a very informative documentation on installation and usage. You … Read More

Abdul AwalExample code of Google Recaptcha implementation with php curl

Display current website ip on browser toolbar

Abdul AwalArticles, Web DevelopmentLeave a Comment

I was working to migrate a website from a server to another, After doing migration of all the files and database I’ve pointed the domain to the new server. That’s when the weird things starts. Normally dns propagation takes some time. In some cases it takes only a few minutes but in other cases it may require upto 24 hours. … Read More

Abdul AwalDisplay current website ip on browser toolbar

Ways to convert a string variable to integer in Javascript

Abdul AwalArticles, Web DevelopmentLeave a Comment

In  this article I am going to write about converting a javascript variable to integer. Its important to have both variable as integer when you’re doing calculations using javascript. I’ll share 2 ways here in this article, there might be other ways as well. Please feel free to share your favourite way in comments section. Ok, Let’s start with an … Read More

Abdul AwalWays to convert a string variable to integer in Javascript

Register Missing Post Types in WordPress

Abdul AwalArticles, WordPress Plugins1 Comment

Today while working on a WordPress site which has content imported from a drupal site using a plugin. That plugin imported content in various post types, so all the content are in database but I can’t see these in WordPress admin panel, because we don’t have the post types registered. The plugin just imported the content. Then after inspecting for … Read More

Abdul AwalRegister Missing Post Types in WordPress

Zip and Unzip files with FTP client/Filezilla

Abdul AwalArticles, Tips, Web Development13 Comments

As a Freelance Web Developer, I work on many hosting panels, I have to transfer sites from one server to another very frequently. While doing this, I’ve faced a very common problem many times in last few years. Some hosting company doesn’t provide a rich file manager or in some cases client gives only ftp account details. If I download all … Read More

Abdul AwalZip and Unzip files with FTP client/Filezilla

Create Zip file with content of current Directory with php – ZipCF

Abdul AwalArticles, Web Development13 Comments

A few days ago I’ve shared a php script to unzip files. After that I received a few queries for a different script that will create zip files with content of current directory. And that’s why I am writing this article today. Today, I’m going to share a php script that will create zip file using content of current directory. … Read More

Abdul AwalCreate Zip file with content of current Directory with php – ZipCF

Change start point of auto increment value for a mysql table from PhpmyAdmin

Abdul AwalArticles, Web DevelopmentLeave a Comment

In some cases you may need to start auto increment value of a table in mysql database. I am going to share a very simple way to do that here. Open phpmyadmin and click on the Database name from left bar. Now, once you have the Database open, click on SQL on top menu. Put the following line in the … Read More

Abdul AwalChange start point of auto increment value for a mysql table from PhpmyAdmin

Retrieve Total Number of Elements in an array php

Abdul AwalArticles, Web DevelopmentLeave a Comment

Sometimes you may need to know how many elements an array is containing. For example, you got result from a mysql query in an array. Now you want to show total number of results returned by the query. There’s a function in php called count() which can do it for you very easily. Use the following in your favourite code … Read More

Abdul AwalRetrieve Total Number of Elements in an array php

Hide List of folders from public with php

Abdul AwalArticlesLeave a Comment

I had a lot of projects under my development server. I used a subdomain (folder) to store all the projects. the url is : demo.MYDOMAIN.com So, When someone types this url on his browser, he’s able to see all of my folders there but I don’t want everyone to be able to see full list. But at the same time, … Read More

Abdul AwalHide List of folders from public with php

Why There should be a Reporting System for Ratings on WordPress.org Repository ?

Abdul AwalArticles2 Comments

Today, I received a 1 star review from a user on one of my plugins hosted on wordpress.org repository. Which is surely a fake review or the user was having some issue with his connection. The issue could be submitted as a Support thread if he really needed the plugin to work. But no, he came in and left a … Read More

Abdul AwalWhy There should be a Reporting System for Ratings on WordPress.org Repository ?