Per l'xml puoi usare DOMDocument
Creati un file xml del tipo
poi nel demone metticodice:<?xml version="1.0"?> <var xml:id="posti">0</var>
Nella pagina del sito fai la stessa cosa, stampand a video $node->nodeValueCodice PHP:$xml = new DOMDocument();
while (1){
$xml->load('/xml/data.xml');
$node = $xml->getElementById('posti') ;
if ($node) {
$node->nodeValue = // il valore letto dalla porta;
$xml->save("/xml/data.xml");
}
}

Rispondi quotando