2) Create a new store in the Magento store manager
3) Select a root category for the new store
4) Crate a store view for the new store
5) Update welcome message and logo
<?php
echo Mage::app()->getStore()->getRootCategoryId());
?>
<?php
echo Mage::app()->getStore()->getCode();
?>
<?php
echo Mage::app()->getStore()->getStoreId()
?>
1) give permissions to the /var/www/ directory
sudo chown -R $USER:$USER /var/www/
2) Install the Apache module mod_rewrite
a2enmod rewrite
3) Chnage the directory and keep the back up of the file “000-default”
cd /etc/apache2/sites-enabled/
sudo cp 000-default 000-default1
4) Edit the file 000-default
sudo vi 000-default
Look for the below given code
Options Indexes FollowSymLinks MultiViews
AllowOverride none
Order allow,deny
allow from all
Modify “AllowOverride none” to “AllowOverride All”
5) Restart Apache
sudo /etc/init.d/apache2 restart
if(mysql_num_rows( mysql_query(“SHOW TABLES LIKE ‘table_name'”)))
echo ” Table exists “
<a href=”javascript:window.print()”>Print</a>
<noscript>Please enable Javascript</noscript>
list($width,$height)=getimagesize($_FILES[‘business_logo’][‘tmp_name’]);