Perfeito amigo! Muito obrigado pela ajuda! Começarei a visitar mais esse fórum e estudar PHP, não parece ser tão difícil. Novamente obrigado! EDIT: Mais uma coisinha, tentei colocar um endereço web e não foi, veja: <?php
$file = fopen("http://5.82.45.73/serv00", "r");
$count = fread($file, Filesize("http://5.82.45.73/serv00"));
$limite = 3;
$pular = 0; //pula um caracter.
$count = substr($count, $pular,$limite);
$fileData = str_replace("-1", "0", $count);
if( $count)
fclose($file);
echo '<span class="style8">'.$fileData.'</span>';
?>
No caso o endereço http://5.82.45.73/serv00 é válido exatamente como está escrito, so que teria de estar na sala do hamachi e tal pra pegar rede.
Veio os seguintes erros:
Warning: filesize() [function.filesize]: stat failed for http://5.93.31.54/serv00.htm in C:\AppServ\www\wyd\index.php on line 3
Warning: fread() [function.fread]: Length parameter must be greater than 0 in C:\AppServ\www\wyd\index.php on line 3 não entendi o que é stat. EDIT2: Entendi, em filesize eu coloco apenas o nome do arquivo... Vlw por tudo! todas as dúvidas foram tiradas! T+