Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 13:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP] Serveronlinestatus mit Bild

Discussion on [HELP] Serveronlinestatus mit Bild within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
Ide.'s Avatar
 
elite*gold: 6
Join Date: Dec 2007
Posts: 4,075
Received Thanks: 1,235
[HELP] Serveronlinestatus mit Bild

DEU

Moin Jungs, kurze Frage.

Mache grad nen Serveronline Status selbst.
Ich bin jetzt soweit das er den Status als Online oder Offline angibt, aber halt nur als Wort.
Anstatt dem Wort möchte ich jetzt Bilder einfügen, aber wie?
Ich hab schon viel ausprobiert, bekomem aber nicht hin. :/

ENG

Hey Guys, i've a little Question

I work now at a "Serveronline Status" on my own.
I have wirte the php code to show me the Words Online and Offline.
Now i want to show to differents Images. I have try many idea's but nothing work.

PHP Code:
<td><div align="center">
              <?php 
        
if(@fsockopen("***.23.6.183",11002,&$errno,&$errstr,2)){ 
        echo 
"<b><font color=\"green\">Online</font></b>"
        } 
        else{ 
        echo 
"<b><font color=\"red\">Offline</font></b>";    
        } 
        
?>
            </div></td>
DEU

Ich hatte es mir so gedacht:

ENG

I've hope it work with this php code:

PHP Code:
</div></td>
            <td><div align="center">        <?php 
        
if(@fsockopen("217.23.6.183",13000,&$errno,&$errstr,2)){ 
        echo 
"<b><img src="on.gif" /></b>"
        } 
        else{ 
        echo 
"<b><img src="off.gif" /></b></b>";    
        } 
        
?></div></td>
DEU

Funktioniert aber nicht. :<
Ich hoffe ihr könnt mir hier helfen!

ENG

But it didnt work. :<
I hope you can help me with my Problem.

Best Regards,
Ide.
Ide. is offline  
Old 10/26/2010, 11:49   #2
 
sava's Avatar
 
elite*gold: 1
Join Date: Dec 2006
Posts: 360
Received Thanks: 135
Moin

Das ist deins:
PHP Code:
</div></td>
            <td><div align="center">        <?php 
        
if(@fsockopen("217.23.6.183",13000,&$errno,&$errstr,2)){ 
        echo 
"<b><img src="on.gif" /></b>"
        } 
        else{ 
        echo 
"<b><img src="off.gif" /></b></b>";    
        } 
        
?></div></td>
und das hat nur einen kleinen Fehler =)

PHP Code:
</div></td>
            <td><div align="center">        <?php 
        
if(@fsockopen("217.23.6.183",13000,&$errno,&$errstr,2)){ 
        echo 
'<b><img src="on.gif" /></b>'
        } 
        else{ 
        echo 
'<b><img src="off.gif" /></b></b>';    
        } 
        
?></div></td>
So funktioniert es

Mfg
sava is offline  
Reply


Similar Threads Similar Threads
[FUN] Bild zerstört Bild
08/14/2010 - Off Topic - 54 Replies
Hallo community!! Hoffe es gibt sowas noch nicht wenn ja tuts mir leid!! Naja wie der Name schon sagt "Bild zerstört Bild" Das spiel ist ganz einfach Einer ladet/postet ein Bild hoch das wiederrum mit einen neuen Bild "zerstört" wird und dann lader der nächste eins hoch was das vorhergehende zersört wird! Eigentlich ganz simpel!! XD ein Beispiel :
[New Sig Bild]<---
04/01/2010 - Main - 4 Replies
Hy libe com. Mein Sig Bild finde ich langsam langweilig ^^ Mir fällt aber nix ein was ich so hintun soll :S Jetzt frage ich euch Kreative Köpfe ob jemand mir ein Sig Bild machen kann :D was soll vorkommen? : Also mein Name: KingLiri
Bild von mir
11/11/2009 - Off Topic - 15 Replies
Hier hab ich ein Bild von mir mit Photoshop erstellt! bitte gibt mir eine ehrliche antwort und ein paar tipps :D http://img689.imageshack.us/img689/5381/murata.jp g
Bild im spiel mit Bild im Ordner vergleichen
10/19/2009 - AutoIt - 7 Replies
Hallo! Ich wollt mal fragen ob und wen ja wie es geht mit autoit ein Bild das im spiel ist mit einem bild das im ordner leigt zu vergleichen! Dankeschonmal in Vorraus!:rolleyes::):D
bild ??
09/26/2008 - Metin2 - 2 Replies
wie kann man ein bild von metin2 us machen und wo steht das dann im ortner ?



All times are GMT +1. The time now is 13:51.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.