hmm I thought the OP's question was about how can he get output/return value from the external program (the file name for example) - maybe it was my misunderstanding
In which case I would still use shell_exec():
<?php
$output = shell_exec('ls -l');
?>
--
Richard Heyes
0844 801 1072
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

