Posts

for using the subdomain in codeigniter

$subdomain_arr = explode ( '.' , $_SERVER [ 'HTTP_HOST' ], 2); //creates the various parts          $subdomain_name = $subdomain_arr [0]; //assigns the first part          echo $subdomain_name ;

change Routing file for subdomain in codeigniter

switch ( $_SERVER [ 'HTTP_HOST' ]) { case 'subdomain.domain.com' : $route [ 'default_controller' ] = "blog" ; $route [ 'latest' ] = "blog/latest" ; break ; default : $route [ 'default_controller' ] = "main" ; break ; }

Incorrect key file for table '/tmp/#sql_3c1_0.MYI'; try to repair it

 you have filled your /tmp partition. When you run a query involving more than one JOIN mysql stores some temporary data in /tmp.

CSS4 is Coming: What You Need to Know

http://webdesign.tutsplus.com/articles/css4-is-coming-what-you-need-to-know--webdesign-11521