Migrating from PHP 5.2 to 5.3

Now PHP 5.2 has no longer support split and ereg function. Most of programmers are using these two functions .They should have go to each and every self-made function where these deprecated functions are used and replace them… Notes: Don’t forget to enable error reporting…error_reporting(E_ALL & ~E_NOTICE) List of updates :– 1. Do not use session_register(), session_is_registered() and session_unregister().you must […]

Rounded Corner in CSS3

The CSS3 border-radius property allows web developers to easily utilise rounder corners in their design elements, without the need for corner images or the use of multiple div tags, and is perhaps one of the most talked about aspects of CSS3. border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius:10px; border-bottom-right-radius: 10px; Declarations in Mozilla: -moz-border-radius: 10px;   /*Produces Fully Rounded Effect*/ -moz-border-radius-topleft:10px;   […]


Now time to learn some XML features.I have been using CDATA in my XML files.CDATA section is not allow to parse XML text by parser.Normally XML Parser parse all text in XML document but CDATA section provide some advance feature to ignore XML parsing. <People> <person id=”1″> <Name>Ankita</Name> <text><![CDATA[ <p>You can check XML advance future using<br />example.</p> ]]></text> </person> </People> […]

Flash embedding without Javascript

Today I came on Flash integration in my web page and I have found one interesting method called “Twice-Cooked Method” which support flash integration without JavaScript.I try to avoid JavaScript embedding of Flash (especially the Adobe version supplied in Dream weaver, it’s exhaustive code) <object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ width=”500″ height=”560″> <param name=”movie” value=”swf/test.swf” /> <!–[if !IE]>–> <object type=”application/x-shockwave-flash” data=”swf/test.swf” width=”500″ height=”560″> <!–<![endif]–> […]

Crossbrowser CSS dropshadows and Blur effects

In past,I had problem with blur effect so I added mootool in my website and some css3 property which was not working in IE. but now I can use CSS filter without any JavaScript. First of all, the blur filter allows you to blur elements in IE <div style=’background:blue;height:100px;width:100px; filter:progid:DXImageTransform.Microsoft.Blur(pixelradius=5); -ms-filter:”progid:DXImageTransform.Microsoft.Blur(pixelradius=5)”;’> </div> Moreover,you can Create the drop shadow and Inner shadow […]

Prevent XSS[Cross-Site Scripting] Attacks

Cross site scripting (also known as XSS) occurs when a web application gathers malicious data from a user. Often attackers will inject JavaScript, VBScript, ActiveX, HTML, or Flash into a vulnerable application to fool a user (Read below for further details) in order to gather data from them Persistent Attack Example <script>document.location=’http://www.google.com/'</script> Non-Persistent Attack Example http://portal.example/index.php?sessionid=12312312&username=<script>document.location=’http://google.com'</script> DOM-based Attack Example http://www.vulnerable.site/welcome.html?name=<script>alert(document.cookie)</script> […]