PHP: Find out who are not following you back programmatically for Instagram

Posted in PHP

I think it’s quite hard to find out if someone you are following but he or she aren’t, right? Or perhaps at least I have this problem. Instagram is not like Facebook which require two way relationships whenever you friend with someone. Unlike Twitter, Instagram does not supply information if the person is following you back or you are not following your followers back.

The screenshot below was the output of the code I tried for my Insta. If you don’t want to jump to the coding part you might try the final product of the code¬† here: http://sandbox.mahadirlab.com/instagram/ .

Continue reading

PHP: OpenVPN connected user lists

Posted in PHP

I had to list out users from about 8 OpenVPN servers for detecting any duplicate users which try to connect to 2 or more VPNs by using same username.

My first attempt was using native c to code the program, a web daemon that can read OpenVPN status file and format the output in JSON format to web browser. I almost took a week to completely finish the code. But until now,  the program still buggy, sigh. it sometimes crashed after several requests from client. You may find the code here https://github.com/mahadirz/opnvpnstatus .

Continue reading