You are here: Re: 'echo "": No such file or directory" error using "exec" to pipe in PHP script « All PHP « IT news, forums, messages
Re: 'echo "": No such file or directory" error using "exec" to pipe in PHP script

Posted by Alan Anderson on 12/02/06 01:26

"comp.lang.tcl" <phillip.s.powell@gmail.com> wrote:

> Uwe Klein wrote:
> > you may want to wrap the [exec ... ] into a catch statement like:
> >
> > if {[catch {exec $valPHPPath -q << $php"} retval]} {
> > ...
> >
> > and see whats happening.
> > catch is very usefull, but you may want to take some rye on the side ;-)
> >
> > uwe
>
> I wish I could see what's happening, but I have no way of ever knowing
> what's going on
>
> if {[catch [exec $valPHPPath -q << $php] errMsg]} {
> ...

Look closely at the difference between what Uwe suggested and what you
actually did. The [catch] command expects a script; you instead gave it
the results of executing the [exec] command.

 

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

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