| Posted by Steve Turnbull on 06/15/81 11:19 
On Wed, 22 Jun 2005 16:45:21 +0300, Veikko Mäkinen wrote:
 > Steve Turnbull wrote:
 >> Hi
 >>
 >> Could someone tell me how to execute a linux shell command with PHP?
 >
 > http://www.php.net/manual/en/ref.exec.php
 > eg. exec("convert -sample 25%x25% $img thumb.$img");
 >
 > But these functions are often disabled on public servers and you should
 > also be aware that the command might be executed by the user running the
 > web server (running PHP as CGI or with suexec wrapper is the cure for this).
 >
 >
 > -veikko
 Thanks for the reply
 
 I have CGI installed in my PHP, how would I go about executing a command
 from within there? Could you elaborate please?
 
 Thanks
 Steve
 [Back to original message] |