note 77715 added to function.system

From: Date: Mon, 10 Sep 2007 12:39:34 +0000
Subject: note 77715 added to function.system
Groups: php.notes 
Request: Send a blank email to php-notes+get-130338@lists.php.net to get a copy of this message
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 ---- Server IP: 62.73.196.231 Probable Submitter: 80.239.25.197 ---- Manual Page -- http://www.php.net/manual/en/function.system.php Edit -- https://master.php.net/note/edit/77715 Del: integrated -- https://master.php.net/note/delete/77715/integrated Del: useless -- https://master.php.net/note/delete/77715/useless Del: bad code -- https://master.php.net/note/delete/77715/bad+code Del: spam -- https://master.php.net/note/delete/77715/spam Del: non-english -- https://master.php.net/note/delete/77715/non-english Del: in docs -- https://master.php.net/note/delete/77715/in+docs Del: other reasons-- https://master.php.net/note/delete/77715 Reject -- https://master.php.net/note/reject/77715 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130338) next »