[snip] > $var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 > /tmp/pitstop.mpeg 2>/dev/null\| grep ID_LENGTH \| cut -d \"=\" -f 2"); [/snip]
$var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2>/dev/null | grep ID_LENGTH | cut -d \"=\" -f 2"); Try just escaping the quotes, pipes should be OK IIRC. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php