![]() |
|
#1
|
||||
|
||||
|
I'm trying to setup a simple html/php page that I can grab an image from to show if my channel is live or not (an online + offline image that changes dynamically). Much like the status next to user's names here on this very forum. Pretty simple.
How would I go about doing such a thing? I'm new to php but have html experience. Much appreciated. |
|
#2
|
||||
|
||||
|
http://community.justin.tv/forums/sh...ht=live+status
that could give you some ideas or a start point |
|
#3
|
||||
|
||||
|
More updated version of carlitos's link here -> http://bashtech.net/wiki/JustinTV_%2...el_Status_Icon (Channel Status Icon section)
__________________
Casts: twitch.tv/bgeorge - Twitch Support: help.twitch.tv Recommend broadcasting software - obsproject.com (Free, works on TTV and JTV) |
|
#4
|
||||
|
||||
|
Quote:
I've made a directory with on/offline images with the php script. When I use the URL I am getting this error: "The image “https://cs4.sunyocc.edu/~a.b.smith26...wrecktv” cannot be displayed, because it contains errors." That's in Firefox, in Chrome I'm only getting the broken image icon. No doubt I'm making some stupid basic mistake as it's been ages since I've done any web stuff, any help is appreciated. Perhaps full example code would be best. Last edited by tripleWRECK; 07-03-2012 at 02:17 PM. |
|
#5
|
||||
|
||||
|
Anyone?
|
|
#6
|
||||
|
||||
|
Remove the line "header('content-type: image/png');" and see if any errors are displayed then.
__________________
Casts: twitch.tv/bgeorge - Twitch Support: help.twitch.tv Recommend broadcasting software - obsproject.com (Free, works on TTV and JTV) |
|
#7
|
||||
|
||||
|
Quote:
Quote:
|
|
#8
|
||||
|
||||
|
Looks like your web server is running a version of PHP before 5.2.0 which is where that function was added.
__________________
Casts: twitch.tv/bgeorge - Twitch Support: help.twitch.tv Recommend broadcasting software - obsproject.com (Free, works on TTV and JTV) |
|
#9
|
||||
|
||||
|
Oh snap I see, well at least the script works haha. I'll look into a new host ASAP.
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|