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 Bryan Oakley on 12/01/06 23:35

comp.lang.tcl wrote:

> When I call it via command-line:
>
> php -q /home/ppowell/web/blah.php << '<?xml version="1.0"
> encoding="utf-8" ?><blah><foo id="1"></foo></blah>'
>
> This happens:
>
> /users/ppowell -->php -q /home/ppowell/web/blah.php << '<?xml
> version="1.0" encoding="utf-8" ?><blah><foo id="1"></foo></blah>'
>
> [and it just sits there for input until I hit CTRL-C]
>

'<<' has a different behavior in a shell than it does in Tcl. You can't
use them the same way.

Using '<<' from a bash shell is what is called a "here document". Here's
one description:

http://www.faqs.org/docs/bashman/bashref_42.html#SEC42

 

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

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