Curl error 407 proxy authentication required

The script where I was grabbing the number of indexed pages from Google suddenly started giving me “Curl error 407 proxy authentication required” error. The script worked perfectly fine for over a year, so I’m not sure why it suddenly started giving the error. After a lot of digging into Google, I found the following … Read more

Categories PHP

How to change the default timezone in XAMPP

Is your XAMPP PHP date() function time different from local machine time? Follow this quick tutorial to change the default timezone in XAMPP. Step 1: Navigate to C:\xampp\php\php.ini or your path, open it in notepad or any text editor. This path might be different if you have installed XAMPP at a different location. Step 2: … Read more

How to integrate Google’s No CAPTCHA reCAPTCHA to your website

How to integrate Google’s NoCAPTCHA

Step 1: Register your website on Google reCAPTCHA To start the process, you need to register your website on Google reCAPTCHA. Go to https://www.google.com/recaptcha/admin and add your website. You will be returned a set of keys like something below. Step 2: Adding the code to your website

Categories PHP

Edit a post on WordPress remotely with XML-RPC and PHP

For the sake of this exercise, I am assuming that you have a clear understanding of what XML-RPC is. If not, read more about it here. I am also assuming that XML-RPC is enabled on your wordpress blog and you have the required IXR_Library.php.inc downloaded from here. The code below is self-explanatory.

Add a post to WordPress remotely with XML-RPC and PHP

For the sake of this exercise, I am assuming that you have a clear understanding of what XML-RPC is. If not, read more about it here. I am also assuming that XML-RPC is enabled on your wordpress blog and you have the required IXR_Library.php.inc downloaded from here. The code below is self-explanatory.