Local Timestamp in PHP Recently I was stuck with one of the assignments which required Local Indian Timestamp to be inserted into database and was not able to find anything better than this even after much googling. I hope you find this useful and if there is a better way, Please let me know and I will update this post. I know there is a better way with PHP 5.3+ but this had to work on a lower version. <?php /* * Function to turn a mysql datetime (YYYY-MM-DD HH:MM:SS) into a unix timestamp * @param str * The string to be formatted */ function convert_datetime($str) { list($date, $time) = ...
» continue readingLogistics Business in India Excellent Service was looking for a brand new website and starting a new advertisement campaign when they contacted us. We had an in-person meeting at their office in Budh Vihar to understand their actual needs. They wanted a new full of life website with their existing logo and the idea was to get it to work. In short, they wanted each page to tell about their services in visually appealing way. As for functionality, they wanted all customers to be able to track their shipment status by putting in a tracking number. That is exactly what we did.... ...
» continue readingCode to Display Indian Time in PHP When you have clients in India, you definitely will need this at one time or another to display Indian Time on the pages published using the perfect CMS that you have built. This small snippet explains how to get Indian Time in PHP without changing the server times and timezones. So irrespective of whether your server is in PST or GMT, you can still display IST when displaying this with PHP. <?php $timezone = new DateTimeZone("Asia/Kolkata" ); $date = new DateTime(); $date->setTimezone($timezone ); echo $date->format( 'H:i:s A / D, M jS, Y' ); ?> Here is a list of supported timezones in ...
» continue readingWhat is MySQL MySQL is a relational database management system (RDBMS) that runs as a server and is not a file based database system like Access. Too Technical?? ok in simple words, this is a place where information can be stored in a pre-defined structure which is used in your application or website. For Example: Lets say you run an online shop, there has to be way to be able to update the products information without having to download the html pages from your server, then uploading them again after making the changes. To facilitate this, the website can be programmed using ...
» continue readingWhat is an Interactive Website? In Interactive Website, in very simple words, is what it sounds like. A website that can interact with the visitor. This shows output or presents information on the screen which is personalized for the visitors who is visiting the website. Let me explain with a very simple example, you might have visited any astrology related website which shows you your forecast based on the inputs that you provide, which in most cases is your date of birth or your sunsign. Another example can be a real estate website for property rentals or property sale where you enter your ...
» continue reading