Tip #1 <?php $todayTimestamp = time(); /* Don’t Use.*/ $nextDay = $todayTimestamp + 86400; /* Do instead.*/ $nextDay = strtotime(‘+1 day’, $todayTimestamp); ?> The first one will not work exactly if you move into or out of daylight savings time. An extra problem is that the second example is more readable, specially if you add…
In the field of web development, generally you need to show indicator image until the code/response will ready to display. You can also call the indicator image as an “AJAX loading” icon or a “preloader image”. It is commonly used on AJAX-base sites and applications, informing the user that the site is still processing…
Detect HTML5 usage If you want to see that a website is using HTML5 elements or not, you only need to view the source of the website. If the source code starts with the following declaration. <!DOCTYPE HTML> Then, website was marked up with HTML5. By using the HTML5 DocType, you can let the browser…
AJAX file uploading using jQuery & PHP: In the day to day life of web programming, you will need to upload the files on server without page refresh. It is very easy with flash, but will little bit tricky with XMLHttpRequest (JavaScript Browser Object) and AJAX. Find the below code or Package that will help you…
jQuery Star Rating System This is jQuery plugin for star rating systems.The code below is modified of original script to make it simpler for you to develop a star rating in your application. Check the demo below hover and click events on stars to change there state Find the complete package of Simple Star Rating…
RSS (Really Simple Syndication) or Rich Site Summary is a format of data for delivering regularly changing web content.Without RSS, users will have to check the site daily for new updates that is very time-consuming.Since RSS data is small and fast-loading, it can easily be used with services like as cell phones or PDA‘s also.…