by Shashi Dhar Kumar | Feb 18, 2011 | Open-Source, PHP, Programming
Get the First Monday of the current Month or Get Last Day of Month or Get First Day of Month Get the First Monday of the current Month <?php function getFirstMonday($month,$year) { $num = date(“w”,mktime(0,0,0,$month,1,$year)); if($num==1) return...
by Shashi Dhar Kumar | Feb 16, 2011 | Open-Source, PHP, Programming
Get a File name from url Using PHP Get the “filename”, or the last part of the string, with the basename function. <?php $url = ‘http://www.example.com/feeds/xyz/index.php?filename=abc’; echo basename($url); // print “index.php”; ?>...
by Shashi Dhar Kumar | Dec 3, 2010 | HTACCESS, Open-Source, PHP, Programming
Most of the e-commerce website uses payment gateway for online payment. And, those sites uses SSL (secure socket layer) connection to transfer data to and from the payment gateway. Most of the sites uses “http” protocol and you can see “http” in the browser’s address...
by Shashi Dhar Kumar | Aug 2, 2010 | Open-Source, Ubuntu, Unix OS
This step-by-step howto shows a basic setup for Apache 2 web server. Apache is installed on Ubuntu 6.06 LTS Dapper, but instructions will probably work on any Ubuntu. This document is a work in progress, initially only required commands are listed without trough-out...
by Shashi Dhar Kumar | Mar 21, 2009 | Blogging, Open-Source
Exactly what is a “Blog”? A Blog, shortened from “weblog”, is basically an online journal where you can digitally put down your ideas, thoughts, opinions and practically anything that you want people to read. Blogging is very popular all over...