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…
Recursion and recursive routines is a bit more complicated, it can be defined as a regular function that calls itself. Learning when and how to apply recursion is probably a lot more difficult than just learning what recursion is? and being able to explain recursion effectively in an interview situation is even more difficult…
On a normal server, there is a limit of mails, that can be sent in a day, but due to error or some issue if a large number of mails sent automatically from your server, and then they (gmail, hotmail yahoo and other) block the incoming mails from that server. This means that your…
If you are using Codeigniter (PHP Framework) you are noticed that by default index.php will be included with your URL. But you can easily remove index.php from your URL so that your URL should be like : http://yourdomainname.com/controller/action/var1/var2 To do this just follows the following steps: 1. Open config.php from system/application/config directory…
Function: trim — Strip whitespace (or other characters) from the beginning and end of a string. Syntax: string trim ( string $str [, string $charlist ] ) Arguments: str The string that will be trimmed. charlist Optionally, the stripped characters can also be specified using the charlist parameter. Argument Options: PHP trim…
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…