It's possible that rpict
isn't on the path of the user running the web server. Try replacing it with the full path. (You can find this by typing which rpict
on most systems).
Like Devon says, turn error reporting up too, to make sure you're getting the full picture:
<?php
error_reporting(E_ALL);
$output = shell_exec('/path/to/rpict ...');
echo "<pre>$output</pre>";
?>