<?php $fp = fopen('/home/pi/hugh/rgb', 'w'); fwrite($fp, '75, 0, 130'); fclose($fp); echo "<meta http-equiv = 'Refresh' content = '2; url =./index.php'/>"; // change redirectpage.php to where you want to redirect. ?>