Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9149989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:33:09+00:00 2026-06-17T11:33:09+00:00

ive added few scripts to my Stream cause im working on a website but

  • 0

ive added few scripts to my Stream cause im working on a website but i keep having an error on line 14 for some reason $User_id; is not working ive gone through the script multiple times but can’t find the error, its an Syntax error but dosen’t tell me much cause i’m not a pro in php but i know theres alot of people that are 😀 but anyways please help 🙂

<?php
include('settings.php');
//Made by Arnem\\
//Settings.php\\
$closed = 2000; //format of time the stream usualy closes\\
$closed2 = '20:00'; //format of same as $closed but with : in the middle of hours : minutes\\
$opend = 1500; //format of time when the stream usualy starts\\
$opend2 = '15:00'; //format of same as $opend but with : in the middle of hours : minutes\\

$openmsg = '<p class=customfont>Streaming status: Online</p>'; //Streaming Online Message\\
$closemsg = '<h1 class=customfont2>Streaming is currently offline!</h1>'; //closed message\\
$closemsg2 = 'Streaming status: Offline'; //Streaming offline message\\
$Streamer_msg = 'Streamer:'; //Message of streamer\\
$Streamer_error = 'ERROR, user not found.'
$User_id = '2';
$userid1 = 'Arnem'; //User that streams songs\\
$userid2 = 'DJ Trolli';
$userid3 = 'Mr. Nobody';
$userid4 = '';
$userid5 = '';
$usr_None = 'None';
$userid = $User_id;
//End of Settings.php\\
//DO NOT CONFIGURE UNDER THIS LINE!\\
$Streamermssg = $Streamer_msg . ' ';
$Streamererror = $Streamer_msg . '';
if ($usersid == NULL) {
$user1 = '<p class=customfont>' . $Streamermssg . $usr_None . '</p>';
} elseif ($usrid == '1') {
$user1 = '<p class=customfont>' . $Streamermssg . $userid1 . '</p>';
} elseif ($userid == '2') {
$user1 = '<p class=customfont>' . $Streamermssg . $userid2 . '</p>';
} elseif ($userid == '3') {
$user1 = '<p class=customfont>' . $Streamermssg . $userid3 . '</p>';
} elseif ($userid == '4') {
$user1 = '<p class=customfont>' . $Streamermssg . $userid4 . '</p>';
} elseif ($userid == '5') {
$user1 = '<p class=customfont>' . $Streamermssg . $userid5 . '</p>';
} else {
$user1 = '<p class=customfont>' . $Streamererror . '</p>';
}

$openmsg3 = '<p class=customfont>' . $openmsg;
$closemsg3 = '<h1 class=customfont2>' . $closemsg;
$closemsg4 = '<p class=customfont>' . $closemsg2 . '</p>';

//Re Configure script\\
$time = gmdate(H)+1 . gmdate(i);

if ($time>$closed) {
$streamer = $Streamermsg . $usr_None . '</p>';
$status1 = $closemsg3;
$status2 = $closemsg4;
} elseif ($time<$opend) {
$streamer = $Streamermsg . $usr_None . '</p>';
$status1 = $closemsg3;
$status2 = $closemsg4;
} else {
$streamer = $Streamermsg2 . $user1;
$status2 = $openmsg3;
}

?>
<!--HTML CODE -->
<html>
<center>
<h1 class="customfont">Welcome to my Stream</h1>
<head>

<title>Sound of Songs</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="swfobject.js"></script>

<style type="text/css">
@font-face {
        font-family: "My Custom Font";
        src: url(http://enderman.tk/stream/custom.ttf) format("truetype");
}
@font-face {
        font-family: "My Custom Font2";
        src: url(http://enderman.tk/stream/custom2.ttf) format("truetype");
}
p.customfont {
        font-family: "My Custom Font";
        color: #ffffff;
}
h1.customfont {
        font-family: "My Custom Font";
        color: #ffffff;
}
h2.customfont {
        font-family: "My Custom Font";
        color: #ffffff;
}
a.customfont {
        font-family: "My Custom Font";
        color: #ffffff;
}
a.customfont:hover {
        font-family: "My Custom Font";
        color: #000000;
}
a.customfont:visited {
        font-family: "My Custom Font";
        color: #3399CC;
}
h1.customfont2 {
        font-family: "My Custom Font";
        color: #FF0000;
}
body
{
background-color: #2c85c7;
}
</style>
<!--FLASH CONTENT-->

</head>
<body>
<div id="flashcontent2">
        <p>
        <strong>Sorry this site have a flash based native radio and needed adobe flash 10+ support. </strong><br />
            <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Download Flash here.</a>
    </p>
</div>

<script type="text/javascript">
        // <![CDATA[

        var so = new SWFObject("nativeradio2small.swf", "nativeradio2small", "300", "50", "10", "#cccccc");
        so.addParam("scale", "noscale");
        so.addVariable("swfcolor", "2c85c7");
        so.addVariable("swfwidth", "300");
        so.addVariable("swfradiochannel", "Sound of Songs");
        so.addVariable("swfstreamurl", "http://enderman.tk:1234");
        so.addVariable("swfpause", "1");
        so.write("flashcontent2");

        // ]]>
</script>
<p></p>
</body>
<?php echo $status1; ?>
<p class="customfont">Mixes: DJ Trolli</p>
<p class="customfont">Songs found by Arnem</p>
<p class="customfont">And played by Arnem</p>
<p class="customfont">Love from Arnem & DJ Trolli!</p>
<p class="customfont">Stream is up at <?php echo $opend2; ?> - <?php echo $closed2; ?> GMT +1</p>
<?php echo $status2; ?>
<?php echo $streamer; ?>

<br />
<h2 class="customfont">Special Message for our Listeners :)</h2>
<p class="customfont">Want more of DJ Trolli?</p><a href="https://soundcloud.com/djtrolli" class="customfont"> Click Here :)</a>

</center>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:33:10+00:00Added an answer on June 17, 2026 at 11:33 am

    Line 14 should be like this (with a semicolon at the end):

    $Streamer_error = 'ERROR, user not found.' ;
    

    Take a look at web server error.log for error messages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've added a few components to the NavigationBar in an app I'm creating. The
I've made updates to my 'hub'. Specifically, I've added a few new methods. It
So ive added a mapfield to my page. It creates everything you'd expect. ie.
QUESTION ONE: In the following example, ive added a listener to the foundMic. My
I've added the Google MAPs API to my app, but it's not a critical
I've added # config/initializers/will_paginate_array_fix.rb require 'will_paginate/array' but still do not seem to be getting
I have a QVBoxLayout that I've added a few widgets to, via addWidget() .
I'm in the process of normalizing a few tables and I've added a surrogate
I've added a few modules and dropped them in my /lib directory and I
I've seen a few questions that were similar but not specific enough. This one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.