The key is that you need to create multiple MySQl database (for different websites), create a new directory in “/sites/your-site-name” folder which includes “default.setting.php” file renamed to “settings.php” and finally have your virtual host settings correctly setup. Thats it!
Archive for the ‘Technology’ Category
Drupal- Ten Easy Step to Step Guide on How to Run Multiple Web Sites from single Drupal Installation with the same code base (multi-site)
October 20th, 2010
Garry Install PHPUnit Manually without Pear for a Single Project to test source code classes with or without Wamp/XAMP installation
October 10th, 2010
Garry Step By Step Guide to install PHPUnit This tutorial is an easy start to test your PHP source code which is build using classes i.e. OOP’s with/without wamp/xamp doesn’t really matter. The key to PHPUnit installation is set correct include path of your PHPUnit directory and extend correct phpUnit class in test case file. Related [...]
Drupal- What is the difference between Page.tpl.php and Node.tpl.php in drupal?
October 4th, 2010
Garry There is a very basic question which everyone asks that what is the basic differences between node.tpl.php and page.tpl.php? Page.tpl.php This template holds the wireframe of the webpage/website like- blocks, regions, header, footer, css, js files and most importantly “main content” etc..
Drupal- How to include a file in drupal template, theme like common Header, Footer
October 3rd, 2010
Garry Here is how you can include a common header, footer in drupal- <?php include ($directory.”/includes/header.php”); ?> “$directory” is a variable automatically available in Drupal which holds the value of a path to your currently executed theme.
Drupal- How to add a drop down menu to your website using CSS SuckerFish Menu
October 3rd, 2010
Garry A drop down menu can be easily added to you website using basic CSS. Here we will explain that how to add a drop down menu to your drupal theme using one of the best menu system available- SuckerFish Menu.
Drupal- How to place a “name” attribute anchor link in menu item
October 3rd, 2010
Garry If you are trying to place a “name” attribute in menu hyperlink then this can be accomplished by declaring a function in your template.php file as below-
Drupal- List of Top most useful Drupal Modules, add on modules
October 3rd, 2010
Garry When I started with drupal I installed number of modules which can be helpful in achieving a particular task. I am just listing down the top most important modules which are required for a full fledged website development using CMS- Drupal- There are no download links provided for some of the modules but they can [...]
Drupal- How to disable “Submitted by” author, date in Content Pages, Content Types
October 3rd, 2010
Garry This can be easily disabled in Themes Global Setting configuration found at- Go to Admin -> Themes -> “Configure” Tab -> Global Settings. You can find the settings in this section.
Javascript Lightweight News Ticker, Scroller CSS Based Customisable
August 29th, 2010
Garry There are many news headline scrollers, tickers available, but, this is a pure javascript lightweight news ticker/scroller for a website. Easy to use and 100% customizable using CSS. Following are the features you can look for in this ticker-
How to use POST method/request in PHP CURL, Execute HTTP POST method in PHP CURL
August 24th, 2010
Garry PHP Curl is a powerful tool provided to the community as a souvenir. In simple words Curl is basically used to communicate with remote host, send a request and get a response. The response may contain data like a message, error response etc. So its a very simple process. There are certain Curl commands through [...]
Jquery Scrolling News Ticker, Jquery Headlines Ticker Customizable
August 21st, 2010
Garry Jquery has become very popular script and first choice of many developers world wide. It is easy use, implement and shows a powerful play with few lines of code. Corporate websites always has a demand of displaying latest company news in website mostly on home page or header. This scrolling script can be easily modified [...]
Javascript script – code to check / validate website URL in a text field entered by a user
August 14th, 2010
Garry The below is a very simple regular expression in javascript to check/ validate the format of website URL entered by a user. The same can also be done through JQuery. I will be posting JQuery validation in my next post.
How to send an attachment in an email using PHP- (PHP Send Email with Attachment)
August 14th, 2010
Garry Sending a valid email through coding guidelines has lately become a challenge. The spamming has taken roll all over the internet and out inbox full of unwanted emails. Smart mail servers scans each and every bit of email information, its headers, content etc. and then deciding to keep it in inbox or move it to [...]
htaccess Rewrite Rule: Redirect to Index page from any subfolder
July 31st, 2010
Garry There have been always a requirement from the webmasters to redirect the user to a certain page from a particular folder at server level. Certainly when some folders of the website are no more in use. Infact created a new website in which some old website folders does not exist.
How to Detect that you are on Joomla Home Page
July 31st, 2010
Garry If you are a new bee to Joomla CMS and want to execute a script when the user is on the home page or want you are doing template integration in Joomla and want to use only one single template i.e. “index.php” then you must be wondering that how can I detect that the user [...]
RSS Feed
Twitter
Posted in
Tags: