|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#281 |
Junior Member
Join Date: Oct 2008
Posts: 15
|
Same here.
I had an error, played around and fixed the error, now its just blank. I have followed the instructions to the letter.... |
![]() |
![]() |
![]() |
#282 |
Major Dude
|
which script are you using (shout1/2/icecast)? how are you calling the script (cron/web)?
|
![]() |
![]() |
![]() |
#283 |
Junior Member
Join Date: Oct 2008
Posts: 15
|
My server supports both v1 & v2 and i have tried both scripts.
So far just by web, if that didn't work i didn't see the need to waste time with the cron. I keep checking twitter to see if its posted after i try but nothing. http://www.chillaxfm.com/twitter/shoutcast_v1.php http://www.chillaxfm.com/twitter/shoutcast_v2.php |
![]() |
![]() |
![]() |
#284 |
Major Dude
|
ok.. well i need to see the source.. feel free to send to me via msg, feel free to remove your twitter credentials but please leave the rest
|
![]() |
![]() |
![]() |
#285 |
Junior Member
Join Date: Mar 2014
Posts: 21
|
i need some help.. have a few questions
1. Can a add the files to a totally different server? and i need help with setting up the latest twitter cast |
![]() |
![]() |
![]() |
#286 |
Major Dude
|
you can add the files to your web server, or any web server that supports php
what else can i help you with? |
![]() |
![]() |
![]() |
#287 |
Junior Member
Join Date: Mar 2014
Posts: 21
|
customer keys and all those should stay in the quotes?
|
![]() |
![]() |
![]() |
#288 |
Major Dude
|
yes
|
![]() |
![]() |
![]() |
#289 |
Junior Member
Join Date: Mar 2014
Posts: 21
|
someone told me that it has to be used on a vps server
|
![]() |
![]() |
![]() |
#290 |
Major Dude
|
incorrect. any webserver that supports php should work fine.
|
![]() |
![]() |
![]() |
#291 |
Major Dude
Join Date: Sep 2003
Location: Harpurhey, Manchester UK
Posts: 866
|
The twitter script I use also needs a server that allows "fsock" connections. Without an fsock connection it won't see the shoutcast server.
|
![]() |
![]() |
![]() |
#292 |
Major Dude
|
yes that is also correct..
also note that most shared hosting providers will have fsock disabled…. some providers allow you to specify your own php.ini config, but still may not allow fsock. |
![]() |
![]() |
![]() |
#293 |
Junior Member
Join Date: Mar 2014
Posts: 21
|
anyone knows about 3jelly? the web host
|
![]() |
![]() |
![]() |
#294 |
Major Dude
|
the best way is to contact their support dept and ask… you might even be able to get an answer from a live chat agent if they have that service on their website…
|
![]() |
![]() |
![]() |
#295 |
Major Dude
|
if you are unsure of your php configuration you can create a phpinfo page..
create a new empty file in any web accessible directory and place the following code in and save as phpinfo.php <?php phpinfo();?> then open your browser and open that file. |
![]() |
![]() |
![]() |
#296 |
Major Dude
|
i have updated the script again… i removed the need for a title.txt file, twitter will reject identical tweets by default. this makes setup much easier for everyone.
you can find all files, instructions, and updated files at twittercast. dlnetworks .net |
![]() |
![]() |
![]() |
#297 |
Junior Member
Join Date: Mar 2014
Posts: 21
|
Fatal error: Uncaught exception 'EpiTwitterForbiddenException' with message '{"errors":[{"code":170,"message":"Missing required parameter: status."}]}' in /home/u539461651/public_html/twittercast/EpiTwitter.php:265 Stack trace: #0 /home/u539461651/public_html/twittercast/EpiTwitter.php(226): EpiTwitterException::raise(Object(EpiCurlManager), false) #1 /home/u539461651/public_html/twittercast/EpiTwitter.php(127): EpiTwitterJson->__get('response') #2 /home/u539461651/public_html/twittercast/EpiTwitter.php(44): EpiTwitter->request('POST', '/statuses/updat...', Array) #3 /home/u539461651/public_html/twittercast/tweet.php(95): EpiTwitter->post('/statuses/updat...', Array) #4 {main} thrown in /home/u539461651/public_html/twittercast/EpiTwitter.php on line 265
I get that error help please |
![]() |
![]() |
![]() |
#298 |
Major Dude
|
please provide me with the entire source. either
or via priv msg.code: |
![]() |
![]() |
![]() |
#299 |
Junior Member
Join Date: May 2014
Posts: 1
|
trying to get this to work.. i get output on the page, but no tweets..
any idea or help?? http://radio.disdads.com/twittercast/icecast.php |
![]() |
![]() |
![]() |
#300 |
Major Dude
|
again.. i can not help unless i see the full source code you are using.
also please include any apache/php error logs. please look closely at the logs before replying as they may have information as to what is failing. if you are seeing the information from the streaming server in the browser, its a good probability that your twitter app is misconfigured. a common misconfiguration is if your twitter app is a read only app. the php error log will show something like this: PHP Fatal error: Uncaught exception 'EpiTwitterNotAuthorizedException' with message '{"request":"\/1.1\/statuses\/update.json","error":"Read-only application cannot POST."} you would need to update the configuration of your twitter app to read and write access. |
![]() |
![]() |
![]() |
#301 |
Junior Member
Join Date: Mar 2014
Posts: 21
|
how do i get hashtags and links to post post also?
|
![]() |
![]() |
![]() |
#302 | |
Major Dude
|
in shoutcast*.php or icecast.php your looking for a line at the bottom that looks like this
code: mine looks like this code: which results in a tweet that looks like this Quote:
|
|
![]() |
![]() |
![]() |
#303 |
Junior Member
Join Date: Mar 2014
Posts: 21
|
ok thanks
|
![]() |
![]() |
![]() |
#304 |
Junior Member
Join Date: May 2014
Posts: 16
|
IAM HAVEING THE SAME ISSUE AS IAMJAY ABOVE
Fatal error: Uncaught exception 'EpiTwitterForbiddenException' with message '{"errors":[{"code":170,"message":"Missing required parameter: status."}]}' in /home/ricofox/public_html/vlinkradio.com/twittercast/EpiTwitter.php:265 Stack trace: #0 /home/ricofox/public_html/vlinkradio.com/twittercast/EpiTwitter.php(226): EpiTwitterException::raise(Object(EpiCurlManager), false) #1 /home/ricofox/public_html/vlinkradio.com/twittercast/EpiTwitter.php(127): EpiTwitterJson->__get('response') #2 /home/ricofox/public_html/vlinkradio.com/twittercast/EpiTwitter.php(44): EpiTwitter->request('POST', '/statuses/updat...', Array) #3 /home/ricofox/public_html/vlinkradio.com/twittercast/shoutcast_v1.php(95): EpiTwitter->post('/statuses/updat...', Array) #4 {main} thrown in /home/ricofox/public_html/vlinkradio.com/twittercast/EpiTwitter.php on line 265 |
![]() |
![]() |
![]() |
#305 |
Major Dude
|
is it returning a title from the shoutcast server?
has the title changed? can you show me examples of what your titles look like? |
![]() |
![]() |
![]() |
#306 |
Junior Member
Join Date: May 2014
Posts: 16
|
|
![]() |
![]() |
![]() |
#307 |
Junior Member
Join Date: May 2014
Posts: 16
|
I am having same issue with iamjay above how did you help him
|
![]() |
![]() |
![]() |
#308 |
Major Dude
|
so again.. i need to see the whole source code for shoutcast_v*.php or icecast.php
you can leave out your twitter credentials... |
![]() |
![]() |
![]() |
#309 |
Join Date: Sep 2003
Posts: 27,873
|
(not that it is) but it's good to know that community members get poor information back from other users as well when they are trying to help resolve issues no matter what it is (as was really starting to think it was something people had against me
![]() |
![]() |
![]() |
![]() |
#310 | |
Junior Member
Join Date: May 2014
Posts: 16
|
Quote:
include 'EpiCurl.php'; include 'EpiOAuth.php'; include 'EpiTwitter.php'; #Consumer key token $consumer_key = ''; #Consumer secret token $consumer_secret = ''; #Access Token $token = ''; #Access Token Secret $secret= ''; $refresh = "60"; // Page refresh time in seconds. Put 0 for no refresh. (only used if updating via browser) $timeout = "5"; // Number of seconds before connecton times out. $ip[1] = "174.123.174.50"; // IP address of shoutcast server $port[1] = "8380"; // Port of shoutcast server //END CONFIGURATION $twitterObj = new EpiTwitter($consumer_key, $consumer_secret, $token, $secret); $twitterObjUnAuth = new EpiTwitter($consumer_key, $consumer_secret); $servers = count($ip); $i = "1"; while($i<=$servers) { $fp = @fsockopen($ip[$i],$port[$i],$errno,$errstr,$timeout); if (!$fp) { $listeners[$i] = "0"; $msg[$i] = "<span class=\"red\">ERROR [Connection refused / Server down]</span>"; $error[$i] = "1"; } else { fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n"); while (!feof($fp)) { $info = fgets($fp); } $info = str_replace('<HTML><meta http-equiv="Pragma" content="no-cache"></head><body>', "", $info); $info = str_replace('</body></html>', "", $info); $stats = explode(',', $info); if (empty($stats[1]) ) { $listeners[$i] = "0"; $msg[$i] = "<span class=\"red\">ERROR [There is no source connected]</span>"; $error[$i] = "1"; } else { if ($stats[1] == "1") { $song[$i] = $stats[6]; $listeners[$i] = $stats[4]; $max[$i] = $stats[3]; $bitrate[$i] = $stats[5]; $peak[$i] = $stats[2]; if ($stats[0] == $max[$i]) { $msg[$i] .= "<span class=\"red\">"; } if ($stats[0] == $max[$i]) { $msg[$i] .= "</span>"; } } else { $listeners[$i] = "0"; $msg[$i] = " <span class=\"red\">ERROR [Cannot get info from server]</span>"; $error[$i] = "1"; } } } $i++; } $total_listeners = array_sum($listeners) ; if ($refresh != "0") { print "<meta http-equiv=\"refresh\" content=\"$refresh\">\n"; } print "<title>$song[1]</title>"; // sure in the title too ?> <center> <?php print "$song[1]"; // so you can see what the output looks like $twitterObj->post('/statuses/update.json', array('status' => $song[1])); // Tweet that shit. ?> </center> |
|
![]() |
![]() |
![]() |
#311 |
Major Dude
|
there are many reasons why this script would fail. the majority is because most people are on shared hosting servers which do not allow methods used in this particular script...
that being said.. i have learned a bunch of scripting techniques in the past few weeks that has stemmed from sctrans2 and/or the source software im using not properly sending along the metadata/title updates.. so i have wrote a shell script to tail the log file, extract the title from any lines that match 'seq="1">' , match that against what the server is currently displaying, and push out the title update if its different, im also going to combine this with a few other scripts i have.. one that changes a redirect depending on if there is a live show or not, if its not a live show, domain/whatever.html will fwd to the download for that show, and if its a live show, links to the pls file... and the twittercast script. i plan on using all of these as script executions via the trans playlist file. either way im happy to help anyone that needs it if i can. |
![]() |
![]() |
![]() |
#312 | |
Junior Member
Join Date: May 2014
Posts: 16
|
Quote:
|
|
![]() |
![]() |
![]() |
#313 |
Major Dude
|
it doesnt.. im working on your stuffright now...
|
![]() |
![]() |
![]() |
#314 |
Junior Member
Join Date: May 2014
Posts: 16
|
|
![]() |
![]() |
![]() |
#315 | |
Major Dude
|
1. Grabbed fresh copy of the code from
code: 2. Copied and pasted the shoutcast server details from your shoutcast_v1.php Quote:
4. Ran the following command on the command line. code: or you can put the page in a web accessible directory and visit the page in any browser. The song posted to my twitter account without any errors in my php config. ![]() ![]() Here it is (from the end of configuration to end of file) code: |
|
![]() |
![]() |
![]() |
#316 |
Junior Member
Join Date: May 2014
Posts: 16
|
i got no change
|
![]() |
![]() |
![]() |
#317 |
Junior Member
Join Date: May 2014
Posts: 16
|
my php info
System Linux langur.arvixe.com 2.6.32-531.11.2.lve1.2.55.el6.x86_64 #1 SMP Fri Apr 18 09:06:31 EDT 2014 x86_64
Build Date May 7 2014 21:57:31 Configure Command './configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zend-multibyte' '--enable-zip' '--prefix=/usr' '--with-bz2' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pgsql=/usr' '--with-pic' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr' Server API CGI/FastCGI Virtual Directory Support disabled Configuration File (php.ini) Path /usr/lib Loaded Configuration File /usr/local/lib/php.ini Scan this dir for additional .ini files (none) Additional .ini files parsed (none) PHP API 20090626 PHP Extension 20090626 Zend Extension 220090626 Zend Extension Build API220090626,NTS PHP Extension Build API20090626,NTS Debug Build no Thread Safety disabled Zend Memory Manager enabled Zend Multibyte Support enabled IPv6 Support enabled Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip, rar Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk |
![]() |
![]() |
![]() |
#318 |
Major Dude
|
who is your hosting provider? sometimes they will block outbound ports except common ones such as 80, 21, 22, 25 , etc....
|
![]() |
![]() |
![]() |
#319 |
Junior Member
Join Date: May 2014
Posts: 16
|
|
![]() |
![]() |
![]() |
#320 |
Major Dude
Join Date: Sep 2003
Location: Harpurhey, Manchester UK
Posts: 866
|
That link that says that domain is up for sale.
Looks like you might want to get another webhost that will allow you to run the Twitter script. |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|