Archive for the ‘tips and technique’ Category

Page 4 of 12« First...23456...10...Last »

How to disable context menu in browsers ?

Today, I would like to share a fairly simple technique to disable right click menu of the website. I was using around 10-15 lines of JavaScript code to disable the menu that appears on the right click on the browser. Full story

How to display panel (div) only in Internet Explorer (IE)

If you view this blog in Internet Explorer(IE), you'll a small yellow panel in the top of this blog but you can't see that block if you open this blog in other browsers. And, a lot of people has asked me how can we do that, today I would like to share that tips with you guys. This IE specific comments will be easy for you to cope with the wired CSS bugs found in IE as well. Full story
Tags: , ,

Prevent your website being displayed inside IFRAME

Sites like Google Image search and goodphptutorials.com displays the website under the IFRAME and I don't think you guyz want your site to be displayed it under the IFRAME. If you want to protect your site to be displayed under the IFRAME then here is the tips for you. Full story

Prevent form post request from another domain in PHP

HTTP POST request from outside domain is one of the way of attacking your website. A intruder can use JavaScript in other domain or localhost to send the repetitive POST request to your web pageĀ  containing PHP script. We must prevent this kind of cross domain form posting which might be harmful of our website. Full story
Tags: ,

Don’t use “and” and “or” logical operator in PHP, it has flaw

Today, When I was doing some programming stuffs and I found out that there is serious flaw in the "and" , "or" logical operator of PHP. I'm not talking about the symbol "||" and "&&" logical operator. I'm talking about the "and" and "or" logical operator (operator with words). Full story
Tags: ,
Page 4 of 12« First...23456...10...Last »
Copyright © 2012 Roshan Bhattarai's Blog. All rights reserved.
Powered by WordPress.org, Custom Theme and ComFi.com Calling Card Company.