Wednesday, December 19, 2012

YII framework dynamic Table Model


/**
 * CActiveRecord implementation that allows specifying
 * DB table name instead of creating a class for each table.
 *
 * Usage (assuming table 'user' with columns 'id' and 'name'):
 *
 * $userModel = DynamicActiveRecord::forTable('user');
 * //list existing users
 * foreach ($userModel->findAll() as $user)
 * echo $user->id . ': ' . $user->name . '
';
 * //add new user
 * $userModel->name = 'Pavle Predic';
 * $userModel->save();
 *
 * @author Pavle Predic
 */
class DynamicActiveRecord extends CActiveRecord
{
/**
* Name of the DB table
* @var string
*/
protected $_tableName;

/**
* Table meta-data.
* Must redeclare, as parent::_md is private
* @var CActiveRecordMetaData
*/
protected $_md;

/**
* Constructor
* @param string $scenario (defaults to 'insert')
* @param string $tableName
*/
public function __construct($scenario = 'insert', $tableName = null)
{
$this->_tableName = $tableName;
parent::__construct($scenario);
}

/**
* Overrides default instantiation logic.
* Instantiates AR class by providing table name
* @see CActiveRecord::instantiate()
* @return DynamicActiveRecord
*/
protected function instantiate($attributes)
{
return new DynamicActiveRecord(null, $this->tableName());
}

/**
* Returns meta-data for this DB table
* @see CActiveRecord::getMetaData()
* @return CActiveRecordMetaData
*/
public function getMetaData()
{
if ($this->_md !== null)
return $this->_md;
else
return $this->_md = new CActiveRecordMetaData($this);
}

/**
* Returns table name
* @see CActiveRecord::tableName()
* @return string
*/
public function tableName()
{
if (!$this->_tableName)
$this->_tableName = parent::tableName();
return $this->_tableName;
}

/**
* Returns an instance of DynamicActiveRecord for the provided DB table.
* This is a helper method that may be used instead of constructor.
* @param string $tableName
* @param string $scenario
* @return DynamicActiveRecord
*/
public static function forTable($tableName, $scenario = 'insert')
{
return new DynamicActiveRecord($scenario, $tableName);
}
}

Thursday, December 6, 2012

YII Framework - Highcharts Extension - datetime issue Resolved


$this->Widget('ext.highcharts.HighchartsWidget', array(
   'options'=>'{
      "title": { "text": "MYSQL Replication" },
      "xAxis": {
      "title": { "text": "Month" },
"type": "datetime",
            "dateTimeLabelFormats": {
                "day": "%e"  
            }
      },
      "yAxis": {
         "title": { "text": "Time" },
"type": "datetime",
        "dateTimeLabelFormats": {
                "hour": "%H"
            }
      },
      "tooltip": {
            "xDateFormat": "%Y-%m-%d"
        },      
      "series": [
{ "name": "success", "data": [[x_ms,y_ms],[x_ms,y_ms]],"pointStart": utc_ms, "pointInterval": date_ms},
         { "name": "failure", "data": [[x_ms,y_ms],[x_ms,y_ms]],"pointStart": utc_ms, "pointInterval": date_ms}
      ]
   }'
));

<script src="http://code.highcharts.com/highcharts.js"></script>

Tuesday, December 4, 2012

SoapUI for ubuntu

http://askubuntu.com/questions/198896/what-is-a-simple-free-soap-client-gui


You can still use SOAPUI
download the script from here and save it on the disk.
then from a terminal
cd /path-to-directory-where-you-downlaod-it
sudo chmod +x soapUI-x32-4_0_0.sh
sudo ./soapUI-x32-4_0_0.sh

Monday, November 5, 2012

Install and configure OAuth in Ubuntu

http://djpate.com/2010/10/07/how-to-install-oauth-support-for-php-on-ubuntu/



First of all you need to make sure you already have php-pear and php5-dev.
If you are unsure just run
1sudo apt-get install php-pear php5-dev make
now run
1sudo pecl install oauth
Personnaly I had an error while compiling
1/usr/include/php5/ext/pcre/php_pcre.h:29: fatal error: pcre.h:
To fix that just install : libpcre3-dev
1sudo apt-get install libpcre3-dev
Once it’s done just add extension=oauth.so at the end of your php.ini (located in /etc/php5/apache2/php.ini) file and restart Apache.

Wednesday, September 26, 2012

Drupal Blog Page Not Found

If you have the problem of not being able to see the Blog Module page after enabling it, and you are using Clean URL for your site, then it's *probably* because you have accidentally created a subdomain with the name 'blog' (e.g. http://blog.example.com), or you have a subdirectory named 'blog' on your website's root folder (www, htdocs or public_html). You should be able to see Drupal's Blog Module after you remove the subdomain / subdirectory with that same name.

The reason you cannot view the Blog Module at your website's URL (e.g. http://www.example.com/blog) when you have a subdomain / subdirectory with the same name is because when using Clean URL, Drupal rewrites the Blog Module address (http://www.example.com/?q=blog to http://www.example.com/blog) using .htaccess file. This causes confusion on the webserver, because when we try to access http://www.example.com/blog, it doesn't know which URL it is suppose to display. It could be the URL that Drupal has rewritten, or it could also be the subdirectory that you have in your web root folder.

The same concept also apply with all the URL Aliases that you have created with your Drupal. Make sure you don't have a folder with the same name as your aliases, or else you will get a Page Not Found error.



Thursday, September 6, 2012

Wordpress - Exclude images from showing in the_content() - Resolved

<?php
   ob_start();
   the_content('Read the full post',true);
   $postOutput = preg_replace('/<img[^>]+./','', ob_get_contents());
   ob_end_clean();
   echo $postOutput;
?>

Ref. Link: http://wordpress.org/support/topic/exclude-images-from-showing-in-the_content

Wednesday, September 5, 2012

XML Sitemap generation with php and mysql


<?php
$host = "localhost"; // host name
$user = "user"; // database user name
$pass = "password"; // database password
$database = "dbname"; // database name
// connecting to database
$connect = @mysql_connect($host,$user,$pass)or die (@mysql_error());
// selecting database
@mysql_select_db($database,$connect) or die (@mysql_error());

// default header(don't delete)
header("Content-Type: text/xml;charset=iso-8859-1");
echo '<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';

// mytable = your content table name
$query = @mysql_query("SELECT * FROM mytable");
while($row = @mysql_fetch_array($query)){
// [url] = content url
$url = $row['url'];
// [time] = content date
$date = date("Y-m-d", $row['time']);

// NO CHANGES BELOW
echo
    '<url>
     <loc>' . $url .'</loc>
     <lastmod>'. $date .'</lastmod>
     <changefreq>daily</changefreq>
     <priority>0.8</priority>
     </url>
    ';
}
echo '</urlset>';?>



.htaccess code ( Optional )


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule (.*)\.xml(.*) $1.php$2 [nocase]
</IfModule>



Tuesday, August 21, 2012

Reset Mysql Root Password in Xampp -- Resolved


  • Go to your xampp\mysql\bin\ folder
  • Edit my.ini and insert skip-grant-tables below [mysqld]
  • Restart MySQL
  • Set new password for your root user by running UPDATE mysql.user SET Password=PASSWORD('new_password') WHERE User='root' in phpMyAdmin in the mysql database (or just leave it like this if MySQL cannot be accessed from remote hosts)

Tuesday, July 17, 2012

XAMPP Apache server not working on internal network


The problem was that the Windows Firewall had port 80 blocked. To fix this, I opened Windows Firewall, clicked Change Settings, went to the Exceptions tab, and then "Add Port". I set Name to "Web Server (TCP 80)", Port Number to 80, and Protocol to TCP and that was it.

Thursday, June 28, 2012

Theming the contact form in Drupal 6


3 Different Ways

1)So I copy page.tpl.php to page-contact.tpl.php and did changes

2)A different method would be to theme the contact form not the whole page.

function YOURTHEMENAME_theme() {
  return array(
    
'contact_mail_page' => array(
      
'arguments' => array('form' => $form),
    ),         
  );
}function
YOURTHEMENAME_contact_mail_page($form) {
  
$output drupal_render($form);
  
$output .= '
't('Text to add to bottom of form') .'
'
;
  return 
$output;
}

?>
 

Saturday, June 16, 2012

PHP Mail Function header to avoid spam issue


$headers = "From: \"".$from_name."\" <".$from_email.">\n";
$headers .= "To: \"".$to_name."\" <".$to_email.">\n";
$headers .= "Return-Path: <".$from_email.">\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/HTML; charset=ISO-8859-1\n";

mail($to, $subject, $message, $headers);

Thursday, June 14, 2012

editor auto adds

paragraph tag after save article or mod

In the administrator, go to Extentsions -> Plugin Manager -> Editor-TinyMCE
In "Parameters" panel, find "New Lines"
Change it to "BR Elements"

Sunday, June 3, 2012

Web Application Development Process

Ref: http://www.comentum.com/web-application-development-process.html


Requirements for Developing Web Applications

by Bernard Kohan

1. Roadmap Document: Defining Web Application, Purpose, Goals and Direction

(Performed by client / project owner)
This initial task is an important part of the process. It requires putting together the Web Application project goals and purpose.
This step establishes your project's clear direction and helps you focus on setting and achieving your goal.
The Roadmap Document will specify the Web Application's future plan and objectives with approximate timelines.

2. Researching and Defining Audience Scope and Security Documents

(Performed by client / project owner, or by Comentum, as a fee service)
This task requires researching the audience/users, and prospective clients (if any), and creating an Analytic Report which includes the following approximate assessments:
- Type of audience for usability purposes:
Creating Statistic Reports on the percentage of users: elementary, average, advanced, the audience ages, and gender
- Type and level of access:
Creating an Access Report, specifying users' access of Intranet, Internet, Extranet - single-level, multi-level
- Type of audience for planning the security level:
Creating a Risk Statistical Document based on users' characteristics, zone's fraud level, application's industry security breaches, and history of the audience's security breaches
- Quantitative statistics on audience:
Creating a Potential Visitors Report, broken down by reasonable periodic time frames

3. Creating Functional Specifications or Feature Summary Document

(Performed by client / project owner)
A Web Application Functionality Specifications Document is the key document in any Web Application project. This document will list all of the functionalities and technical specifications that a web application will require to accomplish. Technically, this document can become overwhelming if one has to follow the Functional Specifications rule and detail out each type of user's behavior on a very large project. However, it is worth putting forth the effort to create this document which will help prevent any future confusion or misunderstanding of the project features and functionalities, by both the project owner and developer. A typical functional specification will list every user's behavior, for example:
  • When a visitor clicks on the "Add to Cart" button from the Product Showcase page, the item is added to the visitor's shopping cart, the Product Showcase page closes and the user is taken to the Shopping Cart page which shows the new item in the cart.

If creating a functional specification document is overwhelming to you, I recommend starting out by creating a Specification Document or Feature Summary Document by either creating the sample screen shots of the web application screens or creating a document that includes a summary list of the application's features, for example:
  • Product / Inventory Summary Showcase: displays a summary of items for sale, stock number, item name, short description, one photo, price, and Add to Cart button.
  • Product / Inventory One Item Showcase: displays the detail of one inventory item: stock number, item name, long description, multiple photos (up to 10 photos), price, and Add to Cart button.

4. Third Party Vendors Identification, Analysis and Selection

(Performed by client / project owner)
This task requires researching, identifying and selection of third party vendors, products and services such as:

5. Technology Selection, Technical Specifications, Web Application Structure and Timelines

(Performed by Comentum)
This document is the blueprint of the technology and platform selection, development environment, web application development structure and framework.
The Technical Specifications Document will detail out the technology used, licenses, versions and forecasts.
The Timeline Document will identify the completion dates for the Web Application's features or modules.

6. Application Visual Guide, Design Layout, Interface Design, Wire framing

(Created by the collaboration of the project owner and Comentum)
One of the main ingredients to a successful project is to put together a web application that utilizes a user's interactions, interface and elements that have a proven record for ease of use, and provide the best user experience.
This process starts out by creating the visual guide, wire framing or simply sketching out the user interface and interactions of the web applications by Comentum's Creative and Usability teams of experts.
Once the Application Interface and Interaction Models are approved, Comentum's creative team design the interface for the web application.

7. Web Application Development

(Executed by Comentum's Development Team)
The application's Design Interface is turned over to Comentum's Development Team who take the following steps to develop the project:
  • Create the Web Application Architecture and Framework
  • Design the Database Structure
  • Develop / Customize the Web Application Module, Libraries and Classes
  • Complete the Development and Implement all Functionalities - Version 1.0

8. Beta Testing and Bug Fixing

(Executed by Comentum's Beta Testers)
Comentum's vigorous quality assurance testing help produce the most secure and reliable web applications.
Version 1.0 of the Web Application is thoroughly tested and any program bugs are addressed and fixed.

Monday, May 14, 2012

Security Checklist for PHP website - Input from $_GET, $_POST, $_COOKIE, and $_REQUEST is considered tainted.



http://markjaquith.wordpress.com/2009/09/21/php-server-vars-not-safe-in-forms-or-links/

Common example:

<form action="php echo $_SERVER['PHP_SELF']; ?>">

Another example:

<a href="php echo $_SERVER['PHP_SELF']' ?>?foo=bar">link titlea>

Here are my two rules regarding $_SERVER['PHP_SELF'] or $_SERVER['REQUEST_URI'] in forms:
  • Do not use them
  • If you use one of them, escape it with esc_url()

Thursday, May 10, 2012

Setting Up Virtual Hosts for XAMPP

Ref: http://sawmac.com/xampp/virtualhosts/



  • Launch Notepad and open the hosts file located at C:\windows\system32\drivers\etc\hosts. (You may not be able to see the windows folder–some files are hidden by default under Windows. Here are instructions to make those files visible.) On Vista, you’ll also need to have access to change the hosts file. To do that, launch Notepad by right clicking on Notepad from the Start menu and choosing "Run As Administrator." This will give you permission to edit and save the file.
  • At the end of that file type:
    127.0.0.1      clientA.local

    127.0.0.1 is how a computer refers to itself—it’s an IP address that points back to the computer, kind of like a computer’s way of saying "ME." The second part (clientA.local) is the "domain" of the virtual host. To visit this domain in a Web browser you’d type http://clientA.local. You don’t have to add the .local part to the hosts files—you could just as easily add 127.0.0.1 clientA and access the site in your Web browser with http://clientA—but I find it helpful for differentiating between a real Web site out on the Internet like clientA.com, and the test sites I have running on my own computer.
  • Save and close the hosts file. That finishes the first part of this task. You’ve prepared your computer to handle requests to http://clientA.local. Now you need to tell the Web server, Apache, how to handle those requests.
  • In Notepad open the Apache configuration file located at C:\xampp\apache\conf\extra\httpd-vhosts.conf
  • At the bottom of that file add:
    NameVirtualHost *
      <VirtualHost *>
        DocumentRoot "C:\xampp\htdocs"
        ServerName localhost
      </VirtualHost>
      <VirtualHost *>
        DocumentRoot "C:\Documents and Settings\Me\My Documents\clientA\website"
        ServerName clientA.local
      <Directory "C:\Documents and Settings\Me\My Documents\clientA\website">
        Order allow,deny
        Allow from all
      </Directory>
    </VirtualHost>
      
    
      
    The first five lines of code turn on the Virtual Host feature on Apache, and set up the C:\xampp\htdocs folder as the default location for http://localhost. That’s important since you need to be able to access the XAMPP web pages at http://localhost/ so that you can use PHPMyAdmin.
    The stuff in yellow represents a single Virtual Host. You’ll add one chunk of code just like this for each Virtual Host (or Web site) on your computer
    You’ll need to modify the stuff highlighted in blue. The first item — DocumentRoot — indicates where the files for this site are located on your computer. The second part–ServerName — is the name you provided in step 2 above: the virtual host name. For example, clientA.local. The third item — the part — is the same path you provided for the DocumentRoot. This is required to let your Web browser have clearance to access these files.
  • Save and close the Apache configuration file, and restart Apache from the XAMPP control panel.
  • Start a Web browser and type a URL for the virtual host. For example: http://clientA.local/.
    You should now see the home page for your site.
  • Sunday, May 6, 2012

    Xampp with PHP and Oracle from Mysql

    Oracle Based Changes

    1. Install oracle any version
    2. configure with database creation ( database will create automatically )
    3. import mysql tables to oracle
    4. Note hostname, username, password and SID.
    5. While start the xampp if NLS_LANG error will come for oci8 follow the below steps
    a.) run --> regedit --> hkey local machine --> softwares --> oracle --> NLS_LANG key rename or delete

    b.) restart system.


    PHP Based Changes After Installed Xampp

    1. In your XAMPP Start Page, go to phpinfo, look for string oci8. If string found it indicate that connection to oracle is available, otherwise to activate connection do the following steps:
    2. Open the currently used php.ini file by looking at the phpinfo, from the XAMPP folder.
    3. Find string ;extension=php_oci8.dll. Remove the semicolon (;) ahead of the string to activate the oracle extension.
    4. Save the php.ini file.
    5. Download the “Instant Client Package – Basic” for Windows from the OTN Instant Client page. Unzip it to c:\instantclient_11_1
    6. Edit the PATH environment setting and add c:\instantclient_11_1 before any other Oracle directories. For example, on Windows XP, follow Start -> Control Panel -> System -> Advanced -> Environment Variables and edit PATH in the System variables list.
    7. Set desired Oracle globalization language environment variables such as NLS_LANG. If nothing is set, a default local environment will be assumed. See An Overview on Globalizing Oracle PHP Applications for more details.
    8. Unset Oracle variables such as ORACLE_HOME and ORACLE_SID, which are unnecessary with Instant Client (if they are set previously).
    9. Restart XAMPP (or Start if its not already started).
    10. To make sure that connection to oracle database has successfully activated, go to phpinfo. Find string: oci8. If found, then XAMPP can now communicate with Oracle Database.

    PHP Based sample connection

    $conn = oci_connect('username', 'password', 'host:port/servicename');
    $query = 'select table_name from user_tables';
    $stid = oci_parse($conn, $query);
    oci_execute($stid, OCI_DEFAULT);
    while ($row = oci_fetch_array($stid, OCI_ASSOC)) {
    foreach ($row as $item) {
    echo $item." | ";
    }
    echo "
    \n";
    }
    oci_free_statement($stid);
    oci_close($conn);



    ADODB Based Sample Connection



    $DB = NewADOConnection("oci8");
    $DB->Connect('localhost', 'system', 'system', 'orasrv');



    Wednesday, April 18, 2012

    Tuesday, April 17, 2012

    Titanium Studio install and configure in Windows 7


    1. Download and install Java JDK 1.6.x
    2. Download and install android SDK version any with android2.1 API Level 7 ( then you can choose all additional apis )
    3. Environmental Variable PATH setup as given below
     %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.6.0_29\bin;C:\Program Files\Android\android-sdk\tools;

    SystemRoot --> Windows will take automatically
    4. Download and Install Titanium Studio ( Titanium mobile-sdk will install continually with this )

    Wednesday, April 11, 2012

    Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml, reason: File not found


    I now spent two hours on this issue
    * I have no proxy in my system
    * I forced 'http' insteas of 'https'
    * I deactivated my virus scanner
    * I even deactivated Windows firewall
    Nothing helped!
    Then I had an idea, I am using Windows 7. So if you are using Windows 7 and you have installed android-sdk under 'C:\Programs' then you have to run the sdk as 
    administrator!
    Windows Start --> Programs --> android --> android-sdk --> right mouse click --> run as administrator.
    This helped, now I am able to install new packages. 
    
    
    http://code.google.com/p/android/issues/detail?id=21359

    Thursday, April 5, 2012

    Titanium Appcelerator - Import project - resource already exists

    If you deleted exiting project folder from "Work Space" means open Titanium Studio -->Window-->Show View--> "Project Explorer" . There you can find deleted project Resource file to delete completely. Then import new in same name again.

    Sunday, March 25, 2012

    Import Excel or CSV to MYsql


    1. Convert Excel file to CSV format.
    2. Use PHPMYAdmin and then execute below SQL statement.

    LOAD DATA LOCAL INFILE 'D:\\filename.csv' INTO TABLE database.tablename FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' (fieldname1,fieldname2,fieldname3 )

    Friday, March 23, 2012

    Function split() is deprecated in PHP 5.3.0


    Just replace
    $win_size = split('x', $popup_win_size);
    with
    $win_size = explode('x', $popup_win_size);

    Ereg To Preg for PHP 5.3.x from PHP 5.2.x -- deprecated error

    Some other ereg_replace calls that you might find:
    ereg_replace('2037' . '$', $year, date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, 2037)))
    ereg_replace('"', ' ', $pieces[$k])
    ereg_replace('(' . implode('|', $from) . ')', $to, $string)
    ereg_replace('[^0-9]', '', $number)
    ereg_replace('-language', '-' . $languages[$j]['directory'], $cached_file)
    ereg_replace('(' . implode('|', $from) . ')', $to, $string)
    ereg_replace("\r","",$which_text)
    ereg_replace('-language', '-' . $language, $cache_blocks[$i]['file'])
    ereg_replace(",\n$", '', $schema)
    ereg_replace("\n#", "\n".'\#', $row)
    ereg_replace(', $', '', $schema)
    would become
    preg_replace('{2037\z}', $year, date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, 2037)))
    str_replace('"', ' ', $pieces[$k])
    preg_replace('{(' . implode('|', $from) . ')}', $to, $string)
    preg_replace('{\D}', '', $number)
    str_replace('-language', '-' . $languages[$j]['directory'], $cached_file)
    str_replace("\r","",$which_text)
    str_replace('-language', '-' . $language, $cache_blocks[$i]['file'])
    preg_replace("{,\n\z}", '', $schema)
    preg_replace("{\n#}", "\n".'\#', $row)
    preg_replace('{, \z}', '', $schema)
    Warning: I haven't tested any of these.          

    http://forums.oscommerce.com/topic/341737-function-ereg-replace-is-deprecated/

    http://www.devthought.com/2009/06/09/fix-ereg-is-deprecated-errors-in-php-53/

    Monday, March 19, 2012

    jquery datepicker not working in ajax page --> Solved

    http://stackoverflow.com/questions/8357702/jquery-datepicker-in-ajax-page


    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp.onreadystatechange=function()
      {
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        {
        document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
         $( "#datepicker" ).datepicker();
        }
      }
    xmlhttp.open("GET","development-bundle/demos/datepicker/default.html",true);
    xmlhttp.send();
    }
    

    Wednesday, January 25, 2012

    Meganto Banner slider not showing in home page

    http://www.magentocommerce.com/boards/viewthread/53499/


    I just fixed bug from last version. I think you should reinstall it first. 
    Ok, now I’ll show you some instructions to use banner slider extension. It’s really very simple. 
    After installation, to make a slideshow on homepage, please go to CMS->Manage Page, choose your cms homepage, and add this line of code to where you want to show banner slider: 
    {{block type='bannerslider/bannerslider' template='bannerslider/bannerslider.phtml'}}

    Magento Fatal error: Call to a member function setStoreId() on a non-object in /app/code/community/Magestore/Bannerslider/Block/Adminhtml/Bannerslider/Edit/Tab/Form.php on line 32

    http://www.magentocommerce.com/boards/viewthread/53945/P15/#t334039



    Please open file: app\code\community\Magestore\Bannerslider\Block\Adminhtml\Bannerslider\Edit\Tab\Form.php, goto line 32 and comment this code: 
    $model->setStoreId(Mage::app()->getStore(true)->getId());

    Wednesday, January 18, 2012

    What is the difference - .com, .org, .net, .biz & .info & all the others?


    World Wide Generic Domains: InterNIC definitions
    Originally, it was suggested that .COM be used primarily for commercial businesses, .NET for network related organizations and .ORG for nonprofit groups. This quickly became unworkable and consequently, in the case of.COM.NET and .ORG, a decision was made to rely on registrants to choose the TLD (Top Level Domain) they wish.In fact, many registrants (domain owners) order their domain name as .COM.NET and .ORG..COM.NET and .ORG are unrestricted open domains.
    More info on .com
    More info on .net
    More info on .org
    .INFO is the internet's first unrestricted top level domain since .COM Around the globe, .INFO is synonymous with information. Anyone can register a .INFO.
    More info on .info
    .BIZ is the internet's first top level domain just for businesses. Anyone can register a .BIZ.
    More info on .biz
    .MOBI is the internet's first top level domain just for mobile devices. .MOBI is an open domain, meaning anyone can register a .MOBI.
    More info on .mobi
    .XXX is the internet's first top level domain specifically designed for the benefit of the global online adult entertainment industry. .XXX is an open domain, meaning anyone over 18 years of age can register a .XXX. Available to non-adult industry brands who do NOT want to host a live website using the .XXX extension. The intention is for the applicant to protect their intellectual property for personal domain names, company domain names, product domain names
    More info on .xxx
    .ASIA is for individuals or companies. Enhance your Asian presence with a .ASIA domain. .ASIA is an open domain.
    More info on .asia
    .EU is for individuals or companies with a European Union presence. Any European Union citizen or company can register a .EU domain.
    More info on .eu
    .NAME is for individuals. .NAME is an open domain, meaning anyone can register a .NAME.
    More info on .name
    .US is for individuals or companies. Any US citizen or company can register a .US domain.
    More info on .us
    .CO.UK is for companies for United Kingdom, and is an open domain.
    .ORG.UK is for non-profit organizations for United Kingdom, and is an open domain.
    .ME.UK is for individuals for United Kingdom, and is an open domain.
    More info on .uk domains
    .CO is an open domain (Columbia)
    .COM.CO for commercial entities.
    .NET.CO for network entities.
    .NOM.CO for individuals.
    More info on .co domains

    .MX is for Mexico, and is an open domain.
    .COM.MX is for commercial purposes, and is an open domain.
    More info on .mx domains
    .TW is for Taiwan, and is an open domain.
    .COM.TW is for commercial purposes.
    .ORG.TW is for organizations.
    More info on .tw domains
    .IN is for India, and is an open domain.
    .CO.IN is for commercial entities for India.
    .NET.IN is for network entities for India.
    .ORG.IN is for nonprofit organizations for India.
    .FIRM.IN is for firm or company for India.
    .GEN.IN is for general use for India.
    .IND.IN is for individual for India.
    More info on .in domains
    .NZ is for New Zealand
    .CO.NZ is an open domain for New Zealand
    .NET.NZ is an open domain for New Zealand
    .ORG.NZ is an open domainfor New Zealand
    More info on .nz domains
    .AC is an open domain (Ascension Island) More info on .ac domains
    .AG is an open domain (Antigua and Barbuda) More info on .ag domains
    .AM is an open domain (Armenia) More info on .am domains
    .AT is an open domain (Austria) More info on .at domains
    .BE is an open domain (Belgium) More info on .be domains
    .BZ is an open domain (Belize) More info on .bz domains
    .CC is an open domain (Cocos (Keeling) Islands) More info on .cc domains
    .CH is an open domain (Switzerland) More info on .ch domains
    .CX is an open domain (Christmas Island) More info on .cx domains
    .CZ is an open domain (Czech Republic) More info on .cz domains
    .DE is the domain for Germany. This domain is reserved for web sites with a German presence. More info on .de domains
    .FM is an open domain (Federated States of Micronesia) More info on .fm domains
    .GD is an open domain (Grenada) More info on .gd domains
    .GS is an open domain (South Georgia & South Sandwich Islands located near Antarctica) More info on .gs domains
    .HN is an open domain (Honduras) More info on .hn domains
    .IO is an open domain (British Indian Ocean Territory) More info on .io domains
    .JP is an open domain (Japan) More info on .jp domains
    .LA is an open domain (Laos) More info on .la domains
    .LC is an open domain (Saint Lucia) More info on .lc domains
    .LI is an open domain (Liechtenstein) More info on .li domains
    .ME is an open domain (Montenegro) More info on .me domains
    .MN is an open domain (Mongolia) More info on .mn domains
    .MS is an open domain (Montserrat) More info on .ms domains
    .NL is an open domain (Netherlands) More info on .nl domains
    .NU is an open domain (Niue) More info on .nu domains
    .PL is an open domain (Poland) More info on .pl domains
    .SC is an open domain (Seychelles) More info on .sc domains
    .SG is an open domain (Singapore) More info on .sg domains
    .SH is an open domain (Saint Helena) More info on .sh domains
    .TC is an open domain (Turks & Caicos Islands) More info on .tc domains
    .TK is an open domain (Tokelau) More info on .tk domains
    .TV is an open domain (Tuvalu) More info on .tv domains
    .VC is an open domain (Saint Vincent and the Grenadines) More info on .vc domains
    .VG is an open domain (British Virgin Islands) More info on .vg domains
    .WS is an open domain (Western Samoa) More info on .ws domains
    .COM & .NET 2nd level domains: - More on 2nd level .com & .net domains
    AR.COM is an alternate domain for Argentina. The .com portion of the extension indicates that the domain is a commercial entity.
    BR.COM is an alternate domain for Brazil. The .com portion of the extension indicates that the domain is a commercial entity.
    CN.COM is an alternate domain for China. The .com portion of the extension indicates that the domain is a commercial entity.
    DE.COM is an alternate domain for Germany. The .com portion of the extension indicates that the domain is a commercial entity.
    EU.COM is an alternate domain for European Union. The .com portion of the extension indicates that the domain is a commercial entity.
    EU.COM is an alternate domain for European Union. The .com portion of the extension indicates that the domain is a commercial entity.
    GB.COM is an alternate domain for Great Britain. The .com portion of the extension indicates that the domain is a commercial entity.
    GB.NET is an alternate domain for Great Britain. The .net portion of the extension represents the word �network� and is most commonly used by businesses that are directly involved in providing Internet services.
    HU.COM is an alternate domain for Hungary. The .com portion of the extension indicates that the domain is a commercial entity.
    JPN.COM is an alternate domain for Japan. The .com portion of the extension indicates that the domain is a commercial entity.
    KR.COM is an alternate domain for Korea. The .com portion of the extension indicates that the domain is a commercial entity.
    NO.COM is an alternate domain for Norway. The .com portion of the extension indicates that the domain is a commercial entity.
    QC.COM is an alternate domain for Quebec. The .com portion of the extension indicates that the domain is a commercial entity.
    RU.COM is an alternate domain for Russia. The .com portion of the extension indicates that the domain is a commercial entity.
    SA.COM is an alternate domain for Saudi Arabia. The .com portion of the extension indicates that the domain is a commercial entity.
    SE.COM is an alternate domain for Sweden. The .com portion of the extension indicates that the domain is a commercial entity.
    SE.NET is an alternate domain for Sweden. The .net portion of the extension represents the word "network", and is generally used by internet infrastructure providers.
    UK.COM is an alternate domain for United Kingdom. The .com portion of the extension indicates that the domain is a commercial entity.
    UK.NET is an alternate domain for United Kingdom. The .net portion of the extension represents the word "network", and is generally used by internet infrastructure providers.
    US.COM is an alternate domain for United States. The .com portion of the extension indicates that the domain is a commercial entity.
    UY.COM is an alternate domain for Uruguay. The .com portion of the extension indicates that the domain is a commercial entity.
    ZA.COM is an alternate domain for South Africa. The .com portion of the extension indicates that the domain is a commercial entity.


    WHAT ARE THE GUIDELINES FOR .EDU?
    Formerly, the .EDU domain was reserved for 4-year, degree-granting colleges and universities.
    Now, Eligibility for a .EDU domain name is limited to regionally-accredited, degree-granting institutions of higher education that are accredited by one of the six U.S. regional accrediting agencies. Each such institution may hold only a single name in the .EDU domain.
    This change means that community colleges, are now eligible for .EDU names.
    Please register .edu domains here .

    WHAT ARE THE GUIDELINES FOR .GOV?
    Registration in the .GOV domain is available to official governmental organizations in the United States including Federal, State, and local governments, and Native Sovereign Nations.
    Please register .gov domains here .



    Domain Register allows people, on a global basis, to search for available .com, .net, .org, .biz, .info, .us, .asia, .eu, .am, .ag, .at, .be, .bz, .cc, .ch, .co, .com.co, .net.co, .nom.co, .cx, .cz, .de, .fm, .gd, .gs, .hn, .in, .co.in, .net.in, .org.in, .firm.in, .gen.in, .ind.in, .la, .lc, .li, .me, .mn, .mobi, .ms, .mx, .com.mx, .co.nz, .net.nz, .org.nz, .pl, .sc, .tc, .tv, .tw, .com.tw, .net.tw, .co.uk, .org.uk, .me.uk, domain names. We perform a 'whois' in a user-friendly format. Once a desired available domain name is found, Domain Register allows people to order their domain name registration with the InterNIC on-line. This is also called URL registration, web name, website name, custom domain registration, dns registration services, net names registration, internet identity registration, or even sometimes internet business name registration.
    Click here to see the list of U.S. States and Countries with which we've done business registering domain names!


    http://www.domainregister.com/comorg.html