note 77715 deleted from function.system by cmb

From: Date: Sun, 08 Dec 2019 11:54:03 +0000
Subject: note 77715 deleted from function.system by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213498@lists.php.net to get a copy of this message
Note Submitter: willytk at gmail dot com ---- If you're having problems with getting imagemagick/convert to work with ghostscript because the gs executable isn't in the apache PATH, do the following: To create a thumb of the first pdf page: <?php $command= 'export PATH=$PATH:/sw/bin; convert "files/example.pdf[0]" -thumbnail 150x150 "files/thumbs/example.png"'; $lastline = system($command,$return); ?> Thanks entropy.ch and phpaladin! Regards, Willy T. Koch Oslo, Norway

« previous php.notes (#213498) next »