Reply to command-line PHP problem

Your name:

Reply:


Posted by comp.lang.php on 11/25/06 19:07

I am trying to pipe in some auto-generated PHP into php.exe, to no
avail:

catch {exec echo '<? if (@is_file("./functions.inc.php")) {
require_once("./functions.inc.php"); echo xml_to_tcl_list("&lt;?xml
version=&quot;1.0&quot; encoding=&quot;utf-8&quot;
?&gt;&lt;fortune&gt;&lt;saying id=&quot;1&quot; author=&quot;Phil
Powell&quot; phrase=&quot;New York is SO
Superior!&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;2&quot;
author=&quot;Phil Powell&quot; phrase=&quot;SUBMIT
STUFF!&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;3&quot;
author=&quot;Old Screams of Abel Slogan&quot; phrase=&quot;Sanctify the
Underground!&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;4&quot;
author=&quot;Phil Powell&quot; phrase=&quot;I believe animals have
rights.. they have a right to be on my dinner
plate&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;5&quot;
author=&quot;Lars Walker&quot; phrase=&quot;..The minimalist approach
is also interesting. Sort of a Scandinavian Modern web
site&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;6&quot;
author=&quot;Phil Powell&quot; phrase=&quot;Don&#034;t forget to sign
the guestbook!&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;7&quot;
author=&quot;Phil Powell&quot; phrase=&quot;Jag vill tillbaka till mitt
hemland!&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;8&quot;
author=&quot;Phil Powell&quot; phrase=&quot;Let us sit by the bonfire,
roasting slabs of meat, telling tales of musical
conquest&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;9&quot;
author=&quot;Phil Powell&quot; phrase=&quot;Want to know God&#034;s
wonderous sense of grace? You still
exist.&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;10&quot;
author=&quot;Phil Powell&quot; phrase=&quot;Gud Rockar - God
Rocks!&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;11&quot;
author=&quot;Phil Powell&quot; phrase=&quot;I need
CAFFEINE!&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;12&quot;
author=&quot;Micah 4:6-7 (NKJV)&quot; phrase=&quot;&amp;quot;In that
day&amp;quot; says the Lord, &amp;quot;I will assemble the lame, I will
gather the outcast, And those whom I have afflicted; I will make the
lame a remnant, And the outcast a strong nation; So the Lord will reign
over them in Mount Zion From now on, even
forever.&amp;quot;&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;13&quot;
author=&quot;Edgar Allen Poe&quot; phrase=&quot;We are all insane with
long intervals of sanity...&quot;&gt;&lt;/saying&gt;&lt;saying
id=&quot;14&quot; author=&quot;C. S. Lewis&quot; phrase=&quot;Atheism
is simple. Real things are not
simple.&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;15&quot;
author=&quot;Phil Powell&quot; phrase=&quot;Nietzsche denied and mocked
God, then died insane.. hmm..&quot;&gt;&lt;/saying&gt;&lt;saying
id=&quot;16&quot; author=&quot;Keltin Alexander&quot; phrase=&quot;How
can you save those in darkness?
You must be unafraid to enter the darkness, and let your light shine
forth to every corner.
&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;17&quot; author=&quot;Phil
in reply to &amp;quot;satanists&amp;quot;&quot;
phrase=&quot;&amp;quot;..the serpent was created by a god that
doesn&#034;t exist..&amp;quot;.. Oh, so Satan doesn&#034;t exist
either??!!&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;18&quot;
author=&quot;Matt&#034;s interpretation of &amp;quot;Screams of
Abel&amp;quot;&quot; phrase=&quot;Cain, no! Noo no please no!
that&#034;s a really big rock Cain, nooooo, Mom won&#034;t like this a
bit! owww Cain, now stop that! ouch! you hit like a girl, put that rock
down right now little brother! owww&quot;&gt;&lt;/saying&gt;&lt;saying
id=&quot;19&quot; author=&quot;overheard in chatroom&quot;
phrase=&quot;5 out of 10 cannibals agree that vegetarians taste
better..&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;20&quot;
author=&quot;My London Family&quot; phrase=&quot;&amp;quot;Thank you,
please!&amp;quot;&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;21&quot;
author=&quot;St.Augustine (354-430 AD)&quot; phrase=&quot;In
Essentials, unity. In non-essentials, liberty. In all things,
love&quot;&gt;&lt;/saying&gt;&lt;saying id=&quot;22&quot;
author=&quot;On t-shirts in Norway&quot; phrase=&quot;I wear black
until they invent a darker colour!!&quot;&gt;&lt;/saying&gt;&lt;saying
id=&quot;23&quot; author=&quot;from &amp;quot;Dune&amp;quot;
(1985)&quot; phrase=&quot;One cannot go against the Word of
God&quot;&gt;&lt;/saying&gt;&lt;/fortune&gt;
"); } ?>' | /usr/local/bin/php >@stdout 2>&stderr<P>}
Status: 404
X-Powered-By: PHP/4.4.4
Content-type: text/html

No input file specified.
child process exited abnormally

I do not have "php -r" ability on any of my machines, so that is not an
option. How then do you take PHP and pipe it into php.exe using CLI
PHP without "-r"?

Thanx
Phil

[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

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