You are here: Re: Some commands execute via PHP "system", some don't--why? « PHP Programming Language « IT news, forums, messages
Re: Some commands execute via PHP "system", some don't--why?

Posted by Acrobatic on 11/20/06 21:02

Hello

Thanks very much for the response--I was unaware of the 2>&1 option and
it's really helped me debug this thing. It was a permissions issue, but
I wasn't able to figure that out without your help--thanks again

Jeff


petersprc wrote:
> Hi,
>
> Maybe stderr has additional info? Maybe this can get more info:
>
> exec('/dir/to/file/convert.pl 2>&1', $output, $exitCode);
>
> if ($exitCode != 0) {
> trigger_error("Command failed with exit code $exitCode: \"" .
> join("\n", $output) . "\".");
> }

 

Navigation:

[Reply to this 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

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