Jump to content


Photo

Online script


  • Please log in to reply
4 replies to this topic

#1 Morbidus One

Morbidus One

    Chonchon

  • Hráči
  • PipPip
  • 28 posts
  • Gender:Male
  • Location:Košice

Posted 08 February 2010 - 09:48 PM

ja sem se dival na ten vas online script a chci si ho dat na stranku jelikoz nejsem v php moc zbehlej potrebuju trochu pomoct muzete mi sakra nekdo prepsat ten script stejne jako je na hlavny strance ?


<?php
$data = file_get_contents("http://server.reborn....php?port=true");
$dil = explode("|",$data);
echo $dil[0]; // status login serveru
echo $dil[1]; // status character serveru
echo $dil[2]; // status map serveru
echo $dil[3]; // počet hráčů online
?>


kdyz tam dam tohle tak to vypise jenom onlineonlineonline456 neumim tam dat text a nejak mi to neber html tagy potrebuju to dat do php fusion panelu takze scrip zacina openside("Reborn Server Status"); a konci closeside();

dekuju predem za pomoc
  • 0
Posted Image

„When you love someone, you've gotta trust them. There's no other way.
You've got to give them the key to everything that's yours. Otherwise,
what's the point? And, for a while, I believed that's the kind of love I had“

- Sam Rothstein, Las Vegas, 1983

#2 Zereges

Zereges

    Baphomet

  • Supporters
  • 1,236 posts
  • Gender:Male
  • Location:Brušperk

Posted 09 February 2010 - 07:11 AM

PHP != HTML;
jestli chceš psát text tak piš buď php funkci echo "text/tagy"; nebo ukončíš php, napíšeš HTML tag/y a začneš php - ?>Tagy, tagy, tagy<?
Cely kod by pak mohl vypadat třeba takto
<?php
  $data = file_get_contents("http://server.reborn.cz/usercount.php?port=true");
  $dil = explode("|",$data);
  $login = "Login : $dil[0] </BR>";
  $char = "Char : $dil[1] </BR>"; 
  $map = "Map : $dil[2] </BR>";
  $online = "Online : $dil[3] </BR>";
  echo $login; // status login serveru
  echo $char; // status character serveru
  echo $map; // status map serveru
  echo $online; // počet hráčů online
?>

  • 0
Once and forever: emblem_pf.png Phoenix Fury, emblem_eki.png Pestilence & emblem_new_eki.pngEkirei Guilds.
Sometimes trolling on Classic Reborn #1 with Siglavi.

Zereges 99/70 FS High Priest, Ydienn 99/50 GW Soul Linker
Stuclinka 99/70 FS PVM Gypsy & Zachumlanek 99/70 FS PVM Clown
Celenitte 99/50 Mobber Soul Linker, Zerexie 99/70 PVM/MVP Sniper, Katami 98/69 Mobber LK
Hashika 97/64 DPS Creator, Ikamono 97/67 MATK Stalker, Feiru 92/58 FA Sniper - Rest in Peace, SEs are gone.
Sometimes occupying Elleshar's chars (Kanashimi 99/67 MVP Champion, Hanayaka 99/70 FS Professor, Falka 99/70 Lab Snatcher)
Mine+Elleshar's Endless Tower video

World of Warcraft (TwinStar): Zereges, Elemental Shaman, <Immortal Outlaws>, Horde (3.1-4.0)
World of Warcraft (Drak'Thul/Burning Blade): Zere, Shadow Priest, <Ekirei>, Horde (5.4-7.0 raider in Ekirei/Ladies First, 7.0-7.3 casual in Panta Rheî, 8.0+ inactive), Zerê, Shadow Priest, <Cerna Ruka>, Alliance(8.0 casual)
Diablo III: Zereges#2618, S15 Inactive, S14 Barbarian, S13 Necromancer (#262 EU), S12 Monk, S11 Wizard, S10 Demon Hunter, S4 Monk, Legacy Monk

My "up to Reborn" story, My Anime List, StackExchange.
Teakwon Class Lover & Expert (Kessha, Asari, Victorique, ...)
WSko je na plusování, kování zbraní a prodávání na trhu. A nikdo mě nepřesvědčí o opaku. (edit 2012: Nyní i na kování armorů) OK, brazilci mě přesvědčili, ale není to na žádnou formu competitive PvP.

#3 Morbidus One

Morbidus One

    Chonchon

  • Hráči
  • PipPip
  • 28 posts
  • Gender:Male
  • Location:Košice

Posted 09 February 2010 - 09:22 AM

Skvele presne tohle sem potreboval dekuju mnoho krat ja sem prave nevedel jak napsat to echo mne to porad vyhazovalo chybu ze neco ocekava nejakej symbol ...


edit: stejne je to vse v jednom radku ten br tag tam nefacha ... :teehee:

ok jde to bez lomitek ...

Edited by Morbidus One, 09 February 2010 - 09:24 AM.

  • 0
Posted Image

„When you love someone, you've gotta trust them. There's no other way.
You've got to give them the key to everything that's yours. Otherwise,
what's the point? And, for a while, I believed that's the kind of love I had“

- Sam Rothstein, Las Vegas, 1983

#4 Koca

Koca

    Baphomet

  • Supporters
  • 2,525 posts
  • Gender:Male
  • Location:Praha
  • Interests:Kočičky :)

Posted 09 February 2010 - 06:02 PM

odradkovani se pise:
<br> pro HTML a
<br/> pro XHTML

jo a pokud chces mit kod validni, tagy pis malejma pismenama :teehee:
  • 0

#5 Zereges

Zereges

    Baphomet

  • Supporters
  • 1,236 posts
  • Gender:Male
  • Location:Brušperk

Posted 10 February 2010 - 07:07 AM

Tagy malýma písmenama se mi nelíbí :D, jo není to náhodou <br(mezera)/>
  • 0
Once and forever: emblem_pf.png Phoenix Fury, emblem_eki.png Pestilence & emblem_new_eki.pngEkirei Guilds.
Sometimes trolling on Classic Reborn #1 with Siglavi.

Zereges 99/70 FS High Priest, Ydienn 99/50 GW Soul Linker
Stuclinka 99/70 FS PVM Gypsy & Zachumlanek 99/70 FS PVM Clown
Celenitte 99/50 Mobber Soul Linker, Zerexie 99/70 PVM/MVP Sniper, Katami 98/69 Mobber LK
Hashika 97/64 DPS Creator, Ikamono 97/67 MATK Stalker, Feiru 92/58 FA Sniper - Rest in Peace, SEs are gone.
Sometimes occupying Elleshar's chars (Kanashimi 99/67 MVP Champion, Hanayaka 99/70 FS Professor, Falka 99/70 Lab Snatcher)
Mine+Elleshar's Endless Tower video

World of Warcraft (TwinStar): Zereges, Elemental Shaman, <Immortal Outlaws>, Horde (3.1-4.0)
World of Warcraft (Drak'Thul/Burning Blade): Zere, Shadow Priest, <Ekirei>, Horde (5.4-7.0 raider in Ekirei/Ladies First, 7.0-7.3 casual in Panta Rheî, 8.0+ inactive), Zerê, Shadow Priest, <Cerna Ruka>, Alliance(8.0 casual)
Diablo III: Zereges#2618, S15 Inactive, S14 Barbarian, S13 Necromancer (#262 EU), S12 Monk, S11 Wizard, S10 Demon Hunter, S4 Monk, Legacy Monk

My "up to Reborn" story, My Anime List, StackExchange.
Teakwon Class Lover & Expert (Kessha, Asari, Victorique, ...)
WSko je na plusování, kování zbraní a prodávání na trhu. A nikdo mě nepřesvědčí o opaku. (edit 2012: Nyní i na kování armorů) OK, brazilci mě přesvědčili, ale není to na žádnou formu competitive PvP.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users