Skip to Content
It is currently September 27th, 2022, 7:39 pm

All times are UTC - 6 hours [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: phpweb
PostPosted: May 5th, 2021, 6:03 am 
Offline
New User
New User

Joined: May 4th, 2021, 2:27 pm
Posts: 18
hi i'm back using sam i have had enough of arguements as
to what i can use NO ONE is holding a gun to my head and telling me to use other such software
i use what i want to use? anyway enough chitchat i'm trying to get php version of sam to work
yes i tried my hardest for days on end to try and get this up and running without help

but i'm getting this error when trying to get php up and running?


Code:
open("SELECT songlist.*, historylist.listeners as listeners, historylist.requestID as requestID, historylist.date_played as starttime FROM historylist,songlist WHERE (historylist.songID = songlist.ID) AND (songlist.songtype='S') ORDER BY historylist.date_played DESC",6); $history = $db->rows(); reset($history); $db->open("SELECT songlist.*, queuelist.requestID as requestID FROM queuelist, songlist WHERE (queuelist.songID = songlist.ID) AND (songlist.songtype='S') AND (songlist.artist <> '') ORDER BY queuelist.sortID ASC",2); $queue = $db->rows(); reset($queue); //### Calculate the bezt time to refresh the webpage in order to show new updated song information //================================================================================================== list($key, $song) = each($history); $listeners = $song["listeners"]; $starttime = strtotime($song["date_played"]); $curtime = time(); $timeleft = $starttime+round($song["duration"]/1000)-$curtime; //Set refesh interval if($timeleft>0) # 30 second minimum wait { $timeout = $timeleft;} # if timeleft is valid, refresh on timeleft (should be end of song) else { $timeout = 90; } # otherwise, fall back on 90 second refresh if(($timeout>180) or ($timeout==0)) $timeout = 180; if($timeout<30) $timeout = 30; $refreshURL = "playing.php?buster=".date('dhis').rand(1,1000); //================================================================================================== $pic_cnt = 0; function PicName() { global $pic_cnt; echo "Picture".$pic_cnt; } function NextPicName() { global $pic_cnt; $pic_cnt += 1; PicName(); } function PutSongRow(&$song) { global $rc, $showpic, $darkrow, $lightrow; PrepareSong($song); $rc++; $bgcolor = $darkrow; if(($rc % 2)==0) $bgcolor = $lightrow; ?> " target="_blank">" alt="Buy CD!" border=0> >


Last edited by DJ Cassio on May 5th, 2021, 9:01 am, edited 1 time in total.
Moved to Web Features


Top
 Profile  
 
 Post subject: Re: phpweb
PostPosted: May 5th, 2021, 9:06 am 
Offline
SVS Member
SVS Member

Joined: May 8th, 2004, 9:00 am
Posts: 10572
Location: Denver, CO
Not sure what your rant is about but what you are displaying is not an error. It is php code. We can't help with out more information. We need the PHP version your host is running and the SAM version. Is your database running with Mysql or Firebird?

_________________
- Rob Oyler, SVS
Image


Top
 Profile  
 
 Post subject: Re: phpweb
PostPosted: May 5th, 2021, 9:18 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8306
Location: Cologne (Germany)
If you post a link or a screenshot instead of the actual code, that would make things more easy if you don't know anything about PHP yourself.

If the website displays this text instead of rendering the website, it's most likely that the .php file extension isn't being processed by the PHP interpreter and you/your webhost need to change the Apache/nginx config for php files or enable php support in the first place.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
 
 Post subject: Re: phpweb
PostPosted: May 5th, 2021, 10:21 am 
Offline
New User
New User

Joined: May 4th, 2021, 2:27 pm
Posts: 18
@DJ CASSIO here's a link

http://coolvibes.hopto.org/php/playing.php

i'm using wamp server php version 7.4.9


Top
 Profile  
 
 Post subject: Re: phpweb
PostPosted: May 5th, 2021, 1:32 pm 
Offline
New User
New User

Joined: May 4th, 2021, 2:27 pm
Posts: 18
also im using mysql


Top
 Profile  
 
 Post subject: Re: phpweb
PostPosted: May 6th, 2021, 7:37 am 
Offline
SVS Member
SVS Member

Joined: May 8th, 2004, 9:00 am
Posts: 10572
Location: Denver, CO
OK, what version of SAM? And as Mastacheata has pointed out, it looks like your php is not configured correctly.

_________________
- Rob Oyler, SVS
Image


Top
 Profile  
 
 Post subject: Re: phpweb
PostPosted: May 6th, 2021, 9:55 am 
Offline
New User
New User

Joined: May 4th, 2021, 2:27 pm
Posts: 18
version 4.2.2


Top
 Profile  
 
 Post subject: Re: phpweb
PostPosted: May 6th, 2021, 7:26 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8306
Location: Cologne (Germany)
You're at the wrong forum for that. Easy mistake, but sadly we're not able to help you with that piece of software.
With your version of SAM, you have to ask for help in the forum of your AntiVirus manufacturer. 9/10 times the crack for SAM 4.2.2 comes bundled with a virus. I'd be surprised if you managed to find the one non-infected crack, but failed to hide that you're using a massively outdated version of SAM. That's usually not how this works.

Spacial runs huge discounts on their software about twice a year, where you're able to get a new license for about 150 USD. If that's too much for you, you can get the SAM Broadcaster Lite and Live DJ for free by hosting your stream with them instead of any other stream hosting company. Check out Cheapeststream.com and SAM Broadcaster Cloud.

Anyway, this is where the support in this forum ends for you until you provide proof of purchase (preferably get one of the Spacial employees to comment here and vouch for you, as we cannot and will not verify serial numbers or activation codes)

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 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