icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Sql Db Port

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Closed Thread
 
LinkBack Thread Tools Search this Thread Rate Thread
Old October 6th, 2003, 11:36 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in May 2003
8 posts
Gave thanks: 0
Thanked 0 times
Hey Guys and Girls,
Im trying to install a survey script and it is being a royal pain... It needs some info to start off with and I think I have it right But Im not sure about the port # for sql... Ill post in the code here from the config file...

Rich

// DATABASE SETUP
$databaselocation = "localhost"; //Network location of your MySQL Database
$databaseport = "3306"; // The port of your MySQL Database (3306 is default)
$databasename = "surveyor"; // The name of the database that we will create

// SITE INFO
$homeurl = "http://{$_SERVER['SERVER_NAME']}/surveyor/admin"; //The website location (url) of the admin scripts
$publicurl = "http://{$_SERVER['SERVER_NAME']}/surveyor"; //The public website location (url) of the public survey script
$sitename = "Surveyor"; //The official name of the site (appears in the Window title)
$homedir = "{$_SERVER['DOCUMENT_ROOT']}/surveyor/admin"; //The physical disk location of the admin scripts
$publicdir = "{$_SERVER['DOCUMENT_ROOT']}/surveyor"; //The physical disk location of the public scripts
$scriptname = "admin.php"; //The name of the admin script (can be changed to index.php if you want but this is a bit better)
$accesscontrol = 1; //make 0 for no access control
$defaultuser = "admin"; //This is the default username when security is first turned on
$defaultpass = "password"; //This is the default password for when security is first turned on
$siteadminemail = "youremailaddress"; //The email address of the site administrator
$siteadminname = "The site administrators name"; //The name of the site administrator
$surveyfaxnumber = "Site Fax Number"; //The fax number for survey responses if you use the printablesurvey script
$dropdowns = "R"; //SHOW DROPDOWN LISTS in Public Survey as Radio Buttons ® or Dropdown List (L)
$lwcdropdowns = "R"; //SHOW DROPDOWN LISTS WITH COMMENT in Public Sruvey as Radio Buttons ® or Dropdown List (L)
$maxemails = 100; //
speedcomputing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 6th, 2003, 11:40 AM   #2 (permalink)
Registered User
Super #1
 
Joined in Jul 2003
Lives in So. NJ
1,557 posts
Gave thanks: 0
Thanked 9 times
Share with the forum the error messages you receive as well.
__________________
Dime13 | Pass17
snide is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 6th, 2003, 7:44 PM   #3 (permalink)
the one who was
Super #1
 
patrickb's Avatar
 
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
Quote:
$databasename = "youraccountname_surveryor"; // The name of the database that we will create
Replace youraccountname with the login name of your Cpanel login.

Quote:
$defaultuser = "admin"; //This is the default username when security is first turned on
$defaultpass = "password"; //This is the default password for when security is first turned on
Change these to suit your preference. They will probably be used to login to the admin area of the script.

Quote:
$siteadminemail = "youremailaddress"; //The email address of the site administrator
$siteadminname = "The site administrators name"; //The name of the site administrator
$surveyfaxnumber = "Site Fax Number"; //The fax number for survey responses if you use the printablesurvey script
These should be self-explanatory

Everything else should be fine. Give it a go, and post back here with any problems and we will hammer them out.
__________________
Patrick

Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org
patrickb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On