Skip to Content
It is currently July 24th, 2019, 3:52 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: November 15th, 2008, 4:47 pm 
Offline
Senior User
Senior User

Joined: April 24th, 2008, 11:03 am
Posts: 109
Hello,

How do I get SAM Broadcaster 4.3.6 to interact with MyPHPadmin. Or, how do I configure MyPHPadmin? I am pretty new to this PHP business.

I saw some SAM PHP websites and they loook awsome.

I have a webhost (GlowHost). Any help is greatly appreciated :)

Thanks.

_________________
John R. Miller
Program Director
World.FM
Image
World.FM is an offically licensed ASCAP, BMI, SESAC station!
All royalties paid.


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2008, 6:05 pm 
Offline
SVS Member
SVS Member

Joined: May 8th, 2004, 9:00 am
Posts: 10435
Location: Denver, CO
Typically SAM and mysql are installed on the same PC, generally in a home or studio. MyPHPAdmin is typically installed on a remote web host to control remote mysql installations. If you want to control your local mysql download MYSQL GUI tools which includes MYSQL Administrator.

_________________
- Rob Oyler, SVS
Image


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2008, 7:51 pm 
Offline
Senior User
Senior User

Joined: April 24th, 2008, 11:03 am
Posts: 109
I actually have MySQL Administrator downloaded.

How do I get SAM Broadcaster 4.3.6 communicating with my wesbsite?

_________________
John R. Miller
Program Director
World.FM
Image
World.FM is an offically licensed ASCAP, BMI, SESAC station!
All royalties paid.


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2008, 7:54 pm 
Offline
Alumni
Alumni

Joined: December 20th, 2006, 9:23 pm
Posts: 12211
Location: Show Low, AZ
Are you wanting to use the samHTMweb pages or samPHPweb pages? Check out these tutorials:

HTML: http://www.lahotcountry.com/sam_help/sam001.htm

PHP: http://www.scottgiles.com/sam/saminstructions/

_________________
Andrew Cannon
(SVS) Spacial Volunteer Support

WE DANCE AS ONE: A Celebration In Groove
All That Is GOOD In Dance Music from the
70's, 80's, 90's and Now... plus some of the
best DJs from around the world.
http://www.wda1.com


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2008, 8:22 pm 
Offline
Senior User
Senior User

Joined: April 24th, 2008, 11:03 am
Posts: 109
Thanks Andrew 8)

Once I figure everything out. I will post my webpage link here so you or anyone else can take a look :)

Have a great evening Stay warm !

_________________
John R. Miller
Program Director
World.FM
Image
World.FM is an offically licensed ASCAP, BMI, SESAC station!
All royalties paid.


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2008, 8:37 pm 
Offline
Senior User
Senior User

Joined: April 24th, 2008, 11:03 am
Posts: 109
Ok,

I am confused now. Which IP address do I put? The webhost's or mine?

_________________
John R. Miller
Program Director
World.FM
Image
World.FM is an offically licensed ASCAP, BMI, SESAC station!
All royalties paid.


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2008, 9:08 pm 
Offline
Senior User
Senior User

Joined: April 24th, 2008, 11:03 am
Posts: 109
Ok, I am getting this: Parse error: syntax error, unexpected ';', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/worldfmn/public_html/config.php on line 52

On my website.

_________________
John R. Miller
Program Director
World.FM
Image
World.FM is an offically licensed ASCAP, BMI, SESAC station!
All royalties paid.


Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2008, 9:56 pm 
Offline
Alumni
Alumni

Joined: December 20th, 2006, 9:23 pm
Posts: 12211
Location: Show Low, AZ
You will need to put in YOUR IP address.... the website needs to be able to connect to your MySQL you use with your SAM.

_________________
Andrew Cannon
(SVS) Spacial Volunteer Support

WE DANCE AS ONE: A Celebration In Groove
All That Is GOOD In Dance Music from the
70's, 80's, 90's and Now... plus some of the
best DJs from around the world.
http://www.wda1.com


Top
 Profile  
Reply with quote  
PostPosted: November 16th, 2008, 4:22 pm 
Offline
Senior User
Senior User

Joined: April 24th, 2008, 11:03 am
Posts: 109
Ok, I have done the necessary changes.


Now, how do I get SAM to connect to my website? www.world-fm.net?

_________________
John R. Miller
Program Director
World.FM
Image
World.FM is an offically licensed ASCAP, BMI, SESAC station!
All royalties paid.


Top
 Profile  
Reply with quote  
PostPosted: November 16th, 2008, 5:00 pm 
Offline
Senior User
Senior User

Joined: April 24th, 2008, 11:03 am
Posts: 109
I have uploaded the samphpweb folder to the Public HTML folder on my website. Host (GlowHost)

I am still seeing that syntax error. Man, this is frustrating.

_________________
John R. Miller
Program Director
World.FM
Image
World.FM is an offically licensed ASCAP, BMI, SESAC station!
All royalties paid.


Top
 Profile  
Reply with quote  
PostPosted: November 16th, 2008, 5:01 pm 
Offline
SVS Member
SVS Member

Joined: May 8th, 2004, 9:00 am
Posts: 10435
Location: Denver, CO
SAM does not connect to your web site it happens the other way around. You have an error in your config file, if you post it's contents we can probably help you clean it up.

_________________
- Rob Oyler, SVS
Image


Top
 Profile  
Reply with quote  
PostPosted: November 16th, 2008, 5:06 pm 
Offline
Senior User
Senior User

Joined: April 24th, 2008, 11:03 am
Posts: 109
Ok here is the config.php file.

by the way, thanks for helping me out. :)

<?php

/* ## ======================================== ## */
$commonpath = "./common";

//Station general details
$station = "World.FM";
$email = "worldfmn@world-fm.net";
$logo = "images/logo.gif";

$stationid = 103491; //The ID of your registered station on AudioRealm.com
$sam["host"] = "66.162.79.91"; //The IP address of the machine SAM is running on (DO NOT use a local IP address like 127.0.0.1 or 192.x.x.x)
$sam["port"] = "1221"; //The port SAM handles HTTP requests on. Usually 1221.


//General options
$privaterequests = true; //If False, AudioRealm.com will handle the requests
$showtoprequests = true; //Must we show the top 10 requests on the now playing page?
$requestdays = 30; //Show the top10 requests for the last xx days

$showpic = true; //Must we show pictures in now playing section?
$picture_dir = "pictures/"; //Directory where all your album pictures are stored
$picture_na = $picture_dir."na.gif"; //Use this picture if the song has no picture

//Row colors used
$darkrow = "#dadada";
$lightrow = "#F6F6F6";

/* ## ======================================== ## */

$metabasepath = "$commonpath/metabase";
require("$metabasepath/metabase_interface.php");
require("$metabasepath/metabase_database.php");

require_once("common/form.php");
require_once("common/db.php");
require_once("common/functions.php");




$db = new DBTable();

//Your REMOTE MySQL database login details
//IMPORTANT: This is the database login details for the database located on the WEBSERVER.
$db->ReadXMLConfig("dbconfig.xml.php");

//Your LOCAL MySQL database login details
//This is the login details the webserver will use to contact the local database on the SAM Broadcaster server.
//This is only used for making dedications from the request window.
//$db->ReadXMLConfig("samdb.xml.php");
$samlogin = $db->; //In most cases the remote database will be the same as the local database.

//Finally connect to the database
$db->connect();
?>

_________________
John R. Miller
Program Director
World.FM
Image
World.FM is an offically licensed ASCAP, BMI, SESAC station!
All royalties paid.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group