Posted on 07 March 2011. Tags: gtalk, localhost, port, skype, xampp
How to change the XAMPP server port number Why do we need to change the port number? It is very common that a web developer needs to have multiple web servers running, all at the same time. For example, an XAMPP server can be used to run the local wordpress, while a SKYPE or Gtalk [...]
Read the full story
Posted in Article, Computer, Open-Source, PHP, Programming, Tutorial
Posted on 02 March 2011. Tags: mysql, PhpMyAdmin, Ubuntu, windows
Go to phpmyadmin at your localhost if you are using xampp server than go with http://localhost/phpmyadmin or if you are using easyphp than go with http://127.0.0.1/phpmyadmin Now you can see different links related to phpmyadmin like database, sql, status, variables etc. Click on Privileges and now you will see different user is availble in your [...]
Read the full story
Posted in Article, Computer, Open-Source, PHP, Programming, SQL Server, Tutorial
Posted on 18 February 2011. Tags: Advance PHP, Basic PHP, First Day, First Monday, function, Get First Friday of Month, Get First Monday of Month, Get Last Day of Month, Get Last Friday of Month, Get Last Monday of Month, getFirstDay, getFirstMonday, Last Day, mktime, PHP, strftime, strtotime
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 date(“Y-M-ds”,mktime(0,0,0,$month,1,$year)); elseif($num>1) return date(“Y-M-d”,mktime(0,0,0,$month,1,$year)+(86400*(8-$num))); else return date(“Y-M-d”,mktime(0,0,0,$month,1,$year)+(86400*(1-$num))); } $month = date(“m”); $year = date(“Y”); // this will output [...]
Read the full story
Posted in Article, Computer, Open-Source, PHP, Programming, Tutorial
Posted on 16 February 2011. Tags: basename, get file name, PHP, php function, remove file extension, strrpos, Substr
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”; ?> Remove a File Extention Using PHP To strip the file extension from a file name you can use the combination of strrpos() and [...]
Read the full story
Posted in Article, Computer, Open-Source, PHP, Programming, Tutorial
Posted on 03 December 2010. Tags: Apache, HTACCESS, https, PHP, secure layer, security, ssl
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 bar. But in the Ssl connection, we need to redirect [...]
Read the full story
Posted in Apache, Article, Computer, HTACCESS, Open-Source, PHP, Programming, Tutorial
Posted on 02 August 2010. Tags: Apache, Apache Web Server, installation, Ubuntu, Ubuntu 9.10, Web Server
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 troughout explanations. Install Apache $ sudo apt-get install apache2 Test it Surf to [...]
Read the full story
Posted in Article, Computer, Open-Source, Tutorial, Ubuntu, Unix OS
Posted on 21 March 2009. Tags: Blogging, Blogspot, Open Source Technology, Wordpress
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 the world and basically there are no rules when it comes to blogging. Bloggers have [...]
Read the full story
Posted in Article, Blogging, Computer, Open-Source
Get Social!