Reply to Re: execute bash command with php script

Your name:

Reply:


Posted by Steve Turnbull on 11/10/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация