Wednesday, July 27, 2016

How many default tables joomla 3 has

Most of times joomla user download quick start package of joomla and install. Which contains many extensions. many joomla user don't know/notice actually how many joomla tables has by default.
Total default joomla 3 tables 68.

Thanks

Tuesday, July 26, 2016

How to access my localhost(WAMP/XAMPP server) from other pc/mobile

Here we want to use/browse  your localhost (WAMP/XAMPP server) from any other device like my

Android phone or PC or Laptop.

Turn on Wifi Hotspot of your android phone/other laptop and connect your Laptop with your phone.

Start your server at localhost (I am using wamp server)

Now open command prompt and enter ipconfig command you will get following things

Wireless LAN adapter Wireless Network Connection:
  Connection-specific DNS Suffix  . :
  Link-local IPv6 Address . . . . . : fe80::80bc:e378:19ab:e448%11
  IPv4 Address. . . . . . . . . . . : 192.160.10.2  Subnet Mask . . . . . . . . . . . : 255.255.255.0
  Default Gateway . . . . . . . . . : 192.160.10.1
Copy this 192.160.10.2 in your mobile/laptop browser.
Note : Please set you network as "Home Network".

Monday, June 27, 2016

Get / display all dates between two dates-php

It's very common uses to get all dates between two dates rang.

However php has a own class callled "DatePeriod" class which made our work easy for this task.


 $begin = new DateTime('2016-06-01');  
 $end = new DateTime('2016-06-28');  
 $end = $end->modify( '+1 day' );   
 $daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);  
 foreach($daterange as $date){  
   echo $date->format("Y-m-d") . "<br>";  
 }  

Note :
 //(P1D stands for period of one day, see DateInterval for further documentation)
 //$end = $end->modify( '+1 day' ); mean dates include the last day 2016-06-28  

Output will looks like
2016-06-01
2016-06-02
2016-06-03
2016-06-04
2016-06-05

Total Pageviews