Reply to Re: [PHP] exec / shell_exec issues

Your name:

Reply:


Posted by leonski on 07/30/05 04:55

Robert Cummings wrote:
> On Fri, 2005-07-29 at 20:49, leonski wrote:
>
>>Greetings.
>>
>>I've practically worn my eyeballs out trying to figure out a problem and
>>in desperation am posting here in the hope for familiar eyes to guide
>>me, so thanks in advance.
>>
>>check out this code section:
>>
>>if (file_exists($imagefile)) {
>> $execstring = escapeshellarg("/usr/local/bin/mogrify ".$imagefile."
>
>
> Ummm, looks to me like your escaping the entire command instead of just
> individual arguments. Check if that's your problem.
>
> Cheers,
> Rob.
>
I'm getting the same result whether escapeshellarg is there or not :-(

I am a bit suspect that I've missed a compile time directive, as I used
a pre-compiled version of Marc Liyanage (what a dude btw). Maybe the
--bindir directive?

I just don't know enough about it and am having trouble finding docs on
it - any more ideas Robert?

Thanks.
leonski.

[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

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