21
unsinner
html
  • 2009/3/23 23:03

  • unsinner

  • Just popping in

  • Posts: 87

  • Since: 2006/3/15


I need a code that will tell me who is online that will work in a html page that is in the root of my site



22
unsinner
Re: shoutcast
  • 2009/3/23 5:27

  • unsinner

  • Just popping in

  • Posts: 87

  • Since: 2006/3/15


allow forpen is on but when i try to run the php file it times out cant connect to server



23
unsinner
Re: shoutcast
  • 2009/3/23 3:39

  • unsinner

  • Just popping in

  • Posts: 87

  • Since: 2006/3/15


Function unavailable



24
unsinner
Re: shoutcast
  • 2009/3/23 1:15

  • unsinner

  • Just popping in

  • Posts: 87

  • Since: 2006/3/15


no i dont think my server supports fsockopen



25
unsinner
Re: shoutcast
  • 2009/3/22 18:20

  • unsinner

  • Just popping in

  • Posts: 87

  • Since: 2006/3/15


this is the last one i tryed to use


<?php
/*--------------------------------------------------

DACstreamstats: retriever.php
Written by Hercules Avello

--------------------------------------------------*/




// ----------------------- Config ----------------------
// Fill in this information with your own


$title = "Psychohazard"; // Ex: Psychohazard
$url = "**.34.***.25"; // Ex: **.34.***.25
$port = "8***"; // Ex: 8***

// -----------------------------------------------------

if ($open = @fsockopen($url,$port)) {
fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n");
$read = fread($open,1000);
$row = explode("content-type:text/html",$read);
$row = explode(",",$row [1]);
}

// create doctype
$dom = new DOMDocument("1.0");
$row[6] = substr($row[6], 0, -14);

// display document in browser as plain text
header("Content-Type: text/xml");

// root
$root = $dom->createElement("shoutcast");
$dom->appendChild($root);

// title
$item = $dom->createElement("title");
$root->appendChild($item);
$text = $dom->createTextNode($title);
$item->appendChild($text);

// url -http://ipaddress:port/;stream.nsv
$item = $dom->createElement("url");
$root->appendChild($item);
$text = $dom->createTextNode('http://'.$url.':'.$port);
$item->appendChild($text);

// currentListeners
$item = $dom->createElement("currentListeners");
$root->appendChild($item);
$text = $dom->createTextNode($row[4]);
$item->appendChild($text);

// maxListeners
$item = $dom->createElement("maxListeners");
$root->appendChild($item);
$text = $dom->createTextNode($row[3]);
$item->appendChild($text);

// bitrate
$item = $dom->createElement("bitrate");
$root->appendChild($item);
$text = $dom->createTextNode($row[5]);
$item->appendChild($text);

// currentSong
$item = $dom->createElement("currentSong");
$root->appendChild($item);
$text = $dom->createTextNode($row[6]);
$item->appendChild($text);

// status online/offilne
$item = $dom->createElement("status");
$root->appendChild($item);
$status = 'Offline';
if($row[1] == 1)
$status = 'Online';
$text = $dom->createTextNode($status);
$item->appendChild($text);

// If the song tags are formatted correctly,
// also show an "artist" and "title"
if(substr_count($row[6], ' - '))
{
$info = explode(' - ', $row[6]);
$song = $info[1];
$artist = $info[0];

$item = $dom->createElement("artist");
$root->appendChild($item);
$text = $dom->createTextNode($artist);
$item->appendChild($text);

$item = $dom->createElement("songTitle");
$root->appendChild($item);
$text = $dom->createTextNode($song);
$item->appendChild($text);
}

// display
echo $dom->saveXML();

?>



26
unsinner
shoutcast
  • 2009/3/22 18:17

  • unsinner

  • Just popping in

  • Posts: 87

  • Since: 2006/3/15


This is for all you coding experts every time I try to use a script to retrieve stats from my shoutcast server it won’t work I have tried to use deferent php scripts I have even tried the modules for XOOPS like radio and such all I get is a blank screen



27
unsinner
warning
  • 2009/3/22 1:43

  • unsinner

  • Just popping in

  • Posts: 87

  • Since: 2006/3/15


Upgraded to 2.3.3 now I get this

WARNING: Folder /home/unsinner/public_html/xoops_lib is inside DocumentRoot!
For security considerations it is highly suggested to move it out of DocumentRoot.

WARNING: Folder /home/unsinner/public_html/xoops_data is inside DocumentRoot!
For security considerations it is highly suggested to move it out of DocumentRoot.

How do I fix this



28
unsinner
permission
  • 2009/3/21 1:32

  • unsinner

  • Just popping in

  • Posts: 87

  • Since: 2006/3/15


When I click on a members name to look at there profile it tells me that I don’t have permission how can I change this



29
unsinner
blocks
  • 2009/3/20 2:40

  • unsinner

  • Just popping in

  • Posts: 87

  • Since: 2006/3/15


If I wanted to place blocks on a static page outside of XOOPS but in the root of my site how to do this



30
unsinner
Re: ssl
  • 2009/3/19 22:05

  • unsinner

  • Just popping in

  • Posts: 87

  • Since: 2006/3/15


An error occurred during a connection to unsinner.com.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)




TopTop
« 1 2 (3) 4 5 6 ... 9 »



Login

Who's Online

182 user(s) are online (79 user(s) are browsing Support Forums)


Members: 0


Guests: 182


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits