Uploading Images Using Imgur API in PHP

This tutorial was a request from Anandu. Imgur provides developers to upload images anonymously using their app. For this you only need to signup for Imgur and get an Application Client ID. In this post I’m going to tell you the step by step process of uploading images using Imgur API in PHP. This is pretty easy. You only have to send a POST request to a file on their site.

[READ MORE]

Add GET or POST parameters on include files in PHP

If you want to add GET parameters or POST parameters to files loading using include function in PHP then you should know the following: It’s not possible. But it is in a different way. If you are adding GET parameters to file name like the following, then it won’t work: The above code won’t load the file, because PHP Include function only looks for files, it won’t send any parameters.

[READ MORE]

Check whether a site is XSS vulnerable or not.

XSS is a method to hack sites which most of the newbie programmers don’t know. Here is a quick way to identify if a site is vulnerable to it. Go to a site which offers searching or other GET parameters which are outputted in the site’s page. Instead of the value in one of the GET parameter use the following value : XSS Vulnerability checker by Subin Sibyalert(‘Site is XSS Vulnerable’) For example a site with the GET parameter query with value subins and the url will be : http://subins.

[READ MORE]