FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP + GD coder needed - Dynamic Sig Help {SOLVED}





Slick
solved
Slick
just found this bit fo code on a forum for showing if a stream or messenger is online!

Code:
<?php
$check = @fsockopen ("127.0.0.1", 80,$errno, $errstr,1); // change 127.0.0.1 to your shoucast ip and 80 to the port
if($check) {
header('content-type: image/gif');
readfile('aimon.gif'); // change this to an image you want when shoutcast is on
} else {
header('content-type: image/gif');
readfile('aimoff.gif'); // change this to an image you want when shoutcast is off

}
?>



could this be used in someway?

Thanks
Slick
is this really difficult? i was hoping it wouldnt be... lol gettin worried... as i'd really like this to work!

so if anyone can help or even offer advice... it'd be apprriciated!
mathiaus
Don't have much time sorry but I have noticed a difference while loading. banner.png first loads the code below then the image unlike the others. What file is this?
Quote:
<html>

<body text="" bgcolor="">

<img src="banner2.png">

</html>
Slick
banner.png is a php script that determines if the radio stream is online or offline.... if its online it will echo the html u pasted showing - banner2.png (this then process the php within the png) if its offline it'll display banner3.png

banner.png works as i want it too... but only standalone... once used in a forum sig it doesnt work!

banner2.png works if i used that in a forum sig ... but i cant get the banner2.png script to use a different image if the radio stream is ofline.. it just stays the same image but the string with the title of the stream is empty/blank!

so i need the bannerscript to be able to deteremine if the streams online.. if carry on with the gd code (making the orange banner with the details on it) and when its offline the script ignores (use else tag?) the online banner making process and use the offline image i tell it too...

thanks
Related topics
PHP Book (Php and Mysql for Dynamic Web Sites)
Interview: Derek Liu, Gaia Online Anime Community
www.Dynamic-Sig.com - Dynamic Signature Images
GD Help
dynamic sig
Need help with my dynamic sig.
How to Install GD in local apache server ? | hELP !!
[PHP] Problem with Dynamic Sig's Font Color
Calling all PHP Gods! 200 frih$ to fix my dynamic sig!
A Little PHP GD Help...
HTML AND PHP CODER NEEDED ASAP
Php , Making Dynamic sig
PHP sig help[solved]
dynamic sig help
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.