Morbidus One Posted February 8, 2010 Report Share Posted February 8, 2010 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.cz/usercount.php?port=true");$dil = explode("|",$data);echo $dil[0]; // status login serveruecho $dil[1]; // status character serveruecho $dil[2]; // status map serveruecho $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 Link to comment Share on other sites More sharing options...
Zereges Posted February 9, 2010 Report Share Posted February 9, 2010 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 ?> Link to comment Share on other sites More sharing options...
Morbidus One Posted February 9, 2010 Author Report Share Posted February 9, 2010 (edited) 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 ... ok jde to bez lomitek ... Edited February 9, 2010 by Morbidus One Link to comment Share on other sites More sharing options...
Koca Posted February 9, 2010 Report Share Posted February 9, 2010 odradkovani se pise: <br> pro HTML a <br/> pro XHTML jo a pokud chces mit kod validni, tagy pis malejma pismenama Link to comment Share on other sites More sharing options...
Zereges Posted February 10, 2010 Report Share Posted February 10, 2010 Tagy malýma písmenama se mi nelíbí , jo není to náhodou <br(mezera)/> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now