Wrong password!'); $text=$_GET['tts']; echo("?tts=$text"); function festival_say($text, $encoding='UTF-8') { //Maybe you will need to SUID festival binary... $festival = popen("iconv -c -t ISO-8859-2 -f $encoding | festival --tts", 'w'); fwrite($festival, $text); fclose($festival); } festival_say($text);