|
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("<?xml
version="1.0" encoding="utf-8"
?><fortune><saying id="1" author="Phil
Powell" phrase="New York is SO
Superior!"></saying><saying id="2"
author="Phil Powell" phrase="SUBMIT
STUFF!"></saying><saying id="3"
author="Old Screams of Abel Slogan" phrase="Sanctify the
Underground!"></saying><saying id="4"
author="Phil Powell" phrase="I believe animals have
rights.. they have a right to be on my dinner
plate"></saying><saying id="5"
author="Lars Walker" phrase="..The minimalist approach
is also interesting. Sort of a Scandinavian Modern web
site"></saying><saying id="6"
author="Phil Powell" phrase="Don"t forget to sign
the guestbook!"></saying><saying id="7"
author="Phil Powell" phrase="Jag vill tillbaka till mitt
hemland!"></saying><saying id="8"
author="Phil Powell" phrase="Let us sit by the bonfire,
roasting slabs of meat, telling tales of musical
conquest"></saying><saying id="9"
author="Phil Powell" phrase="Want to know God"s
wonderous sense of grace? You still
exist."></saying><saying id="10"
author="Phil Powell" phrase="Gud Rockar - God
Rocks!"></saying><saying id="11"
author="Phil Powell" phrase="I need
CAFFEINE!"></saying><saying id="12"
author="Micah 4:6-7 (NKJV)" phrase="&quot;In that
day&quot; says the Lord, &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.&quot;"></saying><saying id="13"
author="Edgar Allen Poe" phrase="We are all insane with
long intervals of sanity..."></saying><saying
id="14" author="C. S. Lewis" phrase="Atheism
is simple. Real things are not
simple."></saying><saying id="15"
author="Phil Powell" phrase="Nietzsche denied and mocked
God, then died insane.. hmm.."></saying><saying
id="16" author="Keltin Alexander" phrase="How
can you save those in darkness?
You must be unafraid to enter the darkness, and let your light shine
forth to every corner.
"></saying><saying id="17" author="Phil
in reply to &quot;satanists&quot;"
phrase="&quot;..the serpent was created by a god that
doesn"t exist..&quot;.. Oh, so Satan doesn"t exist
either??!!"></saying><saying id="18"
author="Matt"s interpretation of &quot;Screams of
Abel&quot;" phrase="Cain, no! Noo no please no!
that"s a really big rock Cain, nooooo, Mom won"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"></saying><saying
id="19" author="overheard in chatroom"
phrase="5 out of 10 cannibals agree that vegetarians taste
better.."></saying><saying id="20"
author="My London Family" phrase="&quot;Thank you,
please!&quot;"></saying><saying id="21"
author="St.Augustine (354-430 AD)" phrase="In
Essentials, unity. In non-essentials, liberty. In all things,
love"></saying><saying id="22"
author="On t-shirts in Norway" phrase="I wear black
until they invent a darker colour!!"></saying><saying
id="23" author="from &quot;Dune&quot;
(1985)" phrase="One cannot go against the Word of
God"></saying></fortune>
"); } ?>' | /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]
|