allow_call_time_pass_reference
allow_call_time_pass_reference of wel conetin time out 110
ik had dit voor gelegd aan mijn provider . en die zij mij het volgende.
Geachte heer/mevrouw,
Zet de volgende regel in een '.htaccess' bestand, en dit zou weer moeten werken:
php_value allow_call_time_pass_reference 1
Met vriendelijke groeten,
Weet iemand welk bestand en waar ik het kan vinden ??
.htaccess moet je zelf aanmaken in de root van je website. Let op: geen extensie.
ehhh ok .. in mijn webroot dat gaat. Maar ehhhhhh een map genaamt thaccess of een txt filte met die regel er in?? en moet ik nog een verwijzing maken in mijn script naar die map/file.
Gewoon een textbestandje die .htaccess noemt. Dus punthtaccess als naam gebruiken en daar geen extensie meer achter plakken.
Als je hem opent lees je inderdaad gewoon text, maar hij mag dus niet de extensie .txt hebben
1 in kladblok deze regel in een txt gezet. php_value allow_call_time_pass_reference 1
2 Opgeslagen als txt.
3 vervolgens op de server gezet. en hernoemd naar .htacces
allemaal gelukt.
Maar nu werkt me scriptje nog niet. geeftd e medeling off line. zie hier.
http://www.jou-site.nl/winamp/winamp.php
zet hier onder even het script.
de config file/ bron: winamp/include/config.php
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?
/***************************************************************************
* config.php
* -------------------
* begin : Sunday, Aug 21, 2006
* owner : AtomicOxide.co.uk - Dave
* email : [email protected]
*
*
***************************************************************************/
/***************************************************************************
*
* This program is a free script; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
////////////////////////////////////////////////////////////////////////////
# Server Config - Please set the following variables.
////////////////////////////////////////////////////////////////////////////
$radiohost= "213.93.59.2"; // the ip address of which you use to connect to the server
$radioport= 4663; // The port the radio uses
$radioofflinemsg='we zijn offline'; // This message will be displayed if the server is offline
$radiopassword='******'; // Insert the DJ password to connect to the server
?>
/***************************************************************************
* config.php
* -------------------
* begin : Sunday, Aug 21, 2006
* owner : AtomicOxide.co.uk - Dave
* email : [email protected]
*
*
***************************************************************************/
/***************************************************************************
*
* This program is a free script; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
////////////////////////////////////////////////////////////////////////////
# Server Config - Please set the following variables.
////////////////////////////////////////////////////////////////////////////
$radiohost= "213.93.59.2"; // the ip address of which you use to connect to the server
$radioport= 4663; // The port the radio uses
$radioofflinemsg='we zijn offline'; // This message will be displayed if the server is offline
$radiopassword='******'; // Insert the DJ password to connect to the server
?>
Heb Pass sterretjes van gemaakt even:-)
De winamp.php/ bron: winamp/winamp.php
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php
/***************************************************************************
* stats.php
* -------------------
* begin : Sunday, Aug 21, 2006
* owner : AtomicOxide.co.uk - Dave
* email : [email protected]
*
*
***************************************************************************/
/***************************************************************************
*
* This program is a free script; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
/////////////////////////////////////////////////////////////////////////////
# DO NOT EDIT BELOW THIS LIME. #
/////////////////////////////////////////////////////////////////////////////
include ("includes/config.php");
$timeout='6';
$listenlink='http://'.$radiohost.':'.$radioport.'/listen.pls';
$radio= @fsockopen("$radiohost", $radioport, &$errno, &$errstr, $timeout);
if(!$radio){
$success='2';
echo $radioofflinemsg; // Radio is offline, so display message
die();
}
//Connect to the server
if($success!='2'){ //If Connection
fputs($radio,"Get /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); //Get 7.HTML
while(!feof($radio)){
$page.=fgets($radio, 1000);
}
$page=ereg_replace(".*<body>", "", $page);
$page=ereg_replace("</body>.*", ",", $page);
$numbers=explode(",",$page);
$currentlisteners=$numbers[0];
$connected=$numbers[1];
//Open Connection
$fp=fsockopen("$radiohost", $radioport, &$errno, &$errstr, 3);
if(!$fp){ //If Connection
$success2='2';
echo "The Radio Server Is Currently Offline";
}
if($success2!='2'){ //If Connected
fputs($fp,"Get /admin.cgi?pass=$radiopassword&mode=viewxml HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
while(!feof($fp)){
$page.= fgets($fp, 1000);
}
$security=explode(",",$page);
$security=explode("401",$security[7]);
$u='0';
while($security[$u]!=""){
if($security[1]!=''){
die("Incorrect Server Password");
}
$u++;
}
//Array
$loop=array("AVERAGETIME", "SERVERGENRE", "SERVERURL", "SERVERTITLE", "SONGTITLE", "SONGURL", "IRC", "ICQ", "AIM", "WEBHITS", "STREAMHITS", "INDEX", "LISTEN", "PALM7",
"LOGIN", "LOGINFAIL", "PLAYED", "COOKIE", "ADMIN", "UPDINFO", "KICKSRC", "KICKDST", "UNBANDST", "BANDST", "VIEWBAN", "UNRIPDST", "VIEWRIP", "VIEWXML",
"VIEWLOG", "INVALID"); //Define All The Variables To Get (Delete Any Ones You Don't Want)
$y='0';
while($loop[$y]!=''){
$pageed=ereg_replace(".*<$loop[$y]>", "", $page); //Extract Data
$phpname=strtolower($loop[$y]);
$$phpname=ereg_replace("</$loop[$y]>.*", "", $pageed); //Finish Extracting Data
if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE)
$$phpname=urldecode($$phpname);
$phpname = $phpname;
$y++;
}
}
if($connected=='1')
$wordconnected="yes";
else
$wordconnected="no";
$peaklisteners=$numbers[2];
$maxlisteners=$numbers[3];
$reportedlisteners=$numbers[4];
$song=$numbers[6];
$bitrate=$numbers[5];
$site=explode(" ", $servertitle);
$title=explode("DJ",$servertitle);
if($wordconnected=="no" && $connected=="0")
{
echo $radioofflinemsg;
}else{
echo"<div align=\"center\">
<table align=\"center\">
<tr>
<td align=\"center\">
<a href=\"http://$serverurl\">$servertitle</a>
</td>
</tr>
<tr>
<td align=\"center\">
<center>$reportedlisteners/$maxlisteners Listeners<br />Bitrate: ".$bitrate."Kbps<p>
Current Song: <br />$numbers[6]</p>
</td>
</tr>
<tr>
<td align=\"center\">
<a href=$listenlink></a>
</td>
</tr>
<tr>
<td align=\"center\"><br />
<object id=\"MediaPlayer\" type=\"application/x-oleobject\" height=\"40\" standby=\"Please wait while we start the radio!\" width=\"170\" classid=\"CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6\">
<param NAME=\"URL\" ref value=\"http://$radiohost:$radioport\">
<param NAME=\"rate\" value=\"1\">
<param NAME=\"balance\" value=\"0\">
<param NAME=\"currentPosition\" value=\"0\">
<param NAME=\"defaultFrame\" value>
<param NAME=\"playCount\" value=\"1\">
<param NAME=\"autoStart\" value=\"0\">
<param NAME=\"currentMarker\" value=\"0\">
<param NAME=\"invokeURLs\" value=\"-1\">
<param NAME=\"baseURL\" value>
<param NAME=\"volume\" value=\"100\">
<param NAME=\"mute\" value=\"0\">
<param NAME=\"uiMode\" value=\"mini\">
<param NAME=\"stretchToFit\" value=\"1\">
<param NAME=\"windowlessVideo\" value=\"0\">
<param NAME=\"enabled\" value=\"-1\">
<param NAME=\"enableContextMenu\" value=\"-1\">
<param NAME=\"fullScreen\" value=\"0\">
<param NAME=\"SAMIStyle\" value>
<param NAME=\"SAMILang\" value>
<param NAME=\"SAMIFilename\" value>
<param NAME=\"captioningID\" value>
<param NAME=\"enableErrorDialogs\" value=\"0\">
<param NAME=\"_cx\" value=\"4763\">
<param NAME=\"_cy\" value=\"1058\">
</object>
</td></tr>
</table>
</div>
";
//Close Connection
fclose($radio);
}
}
/////////////////////////////////////////////////////////////////////////////
# Atomic Network Productions #
/////////////////////////////////////////////////////////////////////////////
?>
/***************************************************************************
* stats.php
* -------------------
* begin : Sunday, Aug 21, 2006
* owner : AtomicOxide.co.uk - Dave
* email : [email protected]
*
*
***************************************************************************/
/***************************************************************************
*
* This program is a free script; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
/////////////////////////////////////////////////////////////////////////////
# DO NOT EDIT BELOW THIS LIME. #
/////////////////////////////////////////////////////////////////////////////
include ("includes/config.php");
$timeout='6';
$listenlink='http://'.$radiohost.':'.$radioport.'/listen.pls';
$radio= @fsockopen("$radiohost", $radioport, &$errno, &$errstr, $timeout);
if(!$radio){
$success='2';
echo $radioofflinemsg; // Radio is offline, so display message
die();
}
//Connect to the server
if($success!='2'){ //If Connection
fputs($radio,"Get /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); //Get 7.HTML
while(!feof($radio)){
$page.=fgets($radio, 1000);
}
$page=ereg_replace(".*<body>", "", $page);
$page=ereg_replace("</body>.*", ",", $page);
$numbers=explode(",",$page);
$currentlisteners=$numbers[0];
$connected=$numbers[1];
//Open Connection
$fp=fsockopen("$radiohost", $radioport, &$errno, &$errstr, 3);
if(!$fp){ //If Connection
$success2='2';
echo "The Radio Server Is Currently Offline";
}
if($success2!='2'){ //If Connected
fputs($fp,"Get /admin.cgi?pass=$radiopassword&mode=viewxml HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
while(!feof($fp)){
$page.= fgets($fp, 1000);
}
$security=explode(",",$page);
$security=explode("401",$security[7]);
$u='0';
while($security[$u]!=""){
if($security[1]!=''){
die("Incorrect Server Password");
}
$u++;
}
//Array
$loop=array("AVERAGETIME", "SERVERGENRE", "SERVERURL", "SERVERTITLE", "SONGTITLE", "SONGURL", "IRC", "ICQ", "AIM", "WEBHITS", "STREAMHITS", "INDEX", "LISTEN", "PALM7",
"LOGIN", "LOGINFAIL", "PLAYED", "COOKIE", "ADMIN", "UPDINFO", "KICKSRC", "KICKDST", "UNBANDST", "BANDST", "VIEWBAN", "UNRIPDST", "VIEWRIP", "VIEWXML",
"VIEWLOG", "INVALID"); //Define All The Variables To Get (Delete Any Ones You Don't Want)
$y='0';
while($loop[$y]!=''){
$pageed=ereg_replace(".*<$loop[$y]>", "", $page); //Extract Data
$phpname=strtolower($loop[$y]);
$$phpname=ereg_replace("</$loop[$y]>.*", "", $pageed); //Finish Extracting Data
if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE)
$$phpname=urldecode($$phpname);
$phpname = $phpname;
$y++;
}
}
if($connected=='1')
$wordconnected="yes";
else
$wordconnected="no";
$peaklisteners=$numbers[2];
$maxlisteners=$numbers[3];
$reportedlisteners=$numbers[4];
$song=$numbers[6];
$bitrate=$numbers[5];
$site=explode(" ", $servertitle);
$title=explode("DJ",$servertitle);
if($wordconnected=="no" && $connected=="0")
{
echo $radioofflinemsg;
}else{
echo"<div align=\"center\">
<table align=\"center\">
<tr>
<td align=\"center\">
<a href=\"http://$serverurl\">$servertitle</a>
</td>
</tr>
<tr>
<td align=\"center\">
<center>$reportedlisteners/$maxlisteners Listeners<br />Bitrate: ".$bitrate."Kbps<p>
Current Song: <br />$numbers[6]</p>
</td>
</tr>
<tr>
<td align=\"center\">
<a href=$listenlink></a>
</td>
</tr>
<tr>
<td align=\"center\"><br />
<object id=\"MediaPlayer\" type=\"application/x-oleobject\" height=\"40\" standby=\"Please wait while we start the radio!\" width=\"170\" classid=\"CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6\">
<param NAME=\"URL\" ref value=\"http://$radiohost:$radioport\">
<param NAME=\"rate\" value=\"1\">
<param NAME=\"balance\" value=\"0\">
<param NAME=\"currentPosition\" value=\"0\">
<param NAME=\"defaultFrame\" value>
<param NAME=\"playCount\" value=\"1\">
<param NAME=\"autoStart\" value=\"0\">
<param NAME=\"currentMarker\" value=\"0\">
<param NAME=\"invokeURLs\" value=\"-1\">
<param NAME=\"baseURL\" value>
<param NAME=\"volume\" value=\"100\">
<param NAME=\"mute\" value=\"0\">
<param NAME=\"uiMode\" value=\"mini\">
<param NAME=\"stretchToFit\" value=\"1\">
<param NAME=\"windowlessVideo\" value=\"0\">
<param NAME=\"enabled\" value=\"-1\">
<param NAME=\"enableContextMenu\" value=\"-1\">
<param NAME=\"fullScreen\" value=\"0\">
<param NAME=\"SAMIStyle\" value>
<param NAME=\"SAMILang\" value>
<param NAME=\"SAMIFilename\" value>
<param NAME=\"captioningID\" value>
<param NAME=\"enableErrorDialogs\" value=\"0\">
<param NAME=\"_cx\" value=\"4763\">
<param NAME=\"_cy\" value=\"1058\">
</object>
</td></tr>
</table>
</div>
";
//Close Connection
fclose($radio);
}
}
/////////////////////////////////////////////////////////////////////////////
# Atomic Network Productions #
/////////////////////////////////////////////////////////////////////////////
?>
Wat gaat er verkeerd?? Zou iemand het weten ??
Gewijzigd op 01/01/1970 01:00:00 door danny
Heeft iemand mischien een idee . waarom dit niet zou werken ?