Emergency Support Order Now | Payments | Help Desk | Contact Us | Resellers | News
Call us toll free at 877-837-0753
  • Information
  • Server Agreement
  • Order Now
  • Information
  • Server Agreement
  • Order Now
  • Information
  • Web Based Email
  • Email Control Panel
  • Virtual Hosting FAQs
  • Order Now
  •  Username
     
     Password
     
     

    Frequently Asked Questions


    How do I connect to my database from perl?
    #!/usr/bin/perl<br> use DBI;<br><br> my $database="YourDataBaseName";<br> my $database_server="localhost";<br> my $database_server_type="mysql";<br> my $database_user_id="YourUserID";<br> my $database_password="YourPassword";<br><br> $dbh = DBI->connect("DBI:$database_server_type:$database:$database_server", $database_user_id, $database_password) or die "Couldn't Connect To My Database";<br><br> For further information, please visit the perl website:
    http://www.perl.com, or refer to your favorite perl documentation.

    NOTE: "localhost" is LITERALLY "localhost" - do not try to enter a servername.

    Back to FAQ's


    Copyright © 2000-2002 Globaltap, All Rights Reserved.
    Terms and Conditions