Posted by Veikko Mδkinen on 11/04/21 11:19
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
--
veikko
mail@ .com
makinen
Navigation:
[Reply to this message]
|