Cross Site Scripting (XSS) Examples, Tutorials – How to Prevent In PHP

What is Cross Site Scripting (XSS). How to prevent this vulnerability in code.

XSS commonly known as cross-site scripting is a code injection technique or attack. In XSS user can inject any malicious HTML, Javascript or any other client side snippet on a web application. It is one of the major security attack after Sql Injection.

Difference Between Single & Double Quotes in PHP

What’s the difference between single & double quotes in PHP. This question is generally asked in interviews to check how well you understand the concepts. Also if you know the difference it will help you in your day to day programming.

In PHP you can specify  the strings using four different ways single quotes , double quotes, heredoc and newdoc syntax.  But most of the time single & double quotes is used to specify strings.

How to Prevent Image Hotlinking through .htaccess

What is Hotlinking

Hotlinking is the process of displaying an image on a website by linking to the same image on another website. It is mostly occurs with images. In simple words suppose i want to show some gadget picture on my website so instead of uploading the picture on my website, i link this picture to someone website using source as http://someone.com/gadget1.jpg.