Michelle Konzack wrote: > Currently I do things like: > > ----[ '/var/www/debian.devel/htdocs/index.php' > ]------------------------ > > $DIR_BASE=/var/www/customers/konzack > $DIR_HOST=$DIR_BASE/debian.devel > $DIR_TMP=$DIR_BASE/TMP > $DIR_GPG=$DIR_BASE/GNUPG > > exec("sed '^/Format:/,/^$/!d' $DIR_TMP/$UPLOAD_ID/$CHANGES |grep '.' > >$DIR_TMP/$UPLOAD_ID/$CHANGES.txt"); exec("sed '/^-----BEGIN PHP > SIGNATURE/,/^-----END PHP SIGNATURE/p' $DIR_TMP/$UPLOAD_ID/$CHANGES > >$DIR_TMP/$UPLOAD_ID/$CHANGES.sig"); exec("gpg --homedir > $DIR_GPG/GNUPG --verify $DIR_TMP/$UPLOAD_ID/$CHANGES.sig > $DIR_TMP/$UPLOAD_ID/$CHANGES.txt"; FOO; GPGRET); if ($GPGRET) { > $FLAG = "true"; > } else { > echo "I do not like this files...\n"; > exec("rm --force $DIR_TMP/$UPLOAD_ID/* ; rmdir > --ignore-fail-on-non-empty $DIR_TMP/$ID") $FLAG = "false"; > } > ------------------------------------------------------------------------ > > What I realy dislike are the exec() calls. > > Any native PHP5 suggestions which are working faster with less > resources?
Why bother with php - just combine the whole thing into one shell-script. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php