I am trying to pipe in some auto-generated PHP into php.exe, to no
avail:
catch {exec echo '<? if (@is_file("./functions.inc.p hp")) {
require_once("./functions.inc.p hp"); echo xml_to_tcl_list ("<?xml
version="1 .0" encoding=" utf-8"
?><fortun e><sayi ng id="1" ; author="Ph il
Powell" phrase="Ne w York is SO
Superior!" ></saying><s aying id="2" ;
author="Ph il Powell" phrase="SU BMIT
STUFF!"> ;</saying><s aying id="3" ;
author="Ol d Screams of Abel Slogan" phrase="Sa nctify the
Underground!&qu ot;></saying><s aying id="4" ;
author="Ph il Powell" phrase="I believe animals have
rights.. they have a right to be on my dinner
plate"> </saying><s aying id="5" ;
author="La rs Walker" phrase=".. The minimalist approach
is also interesting. Sort of a Scandinavian Modern web
site">& lt;/saying><s aying id="6" ;
author="Ph il Powell" phrase="Do n"t forget to sign
the guestbook!" ;></saying><s aying id="7" ;
author="Ph il Powell" phrase="Ja g vill tillbaka till mitt
hemland!"& gt;</saying><s aying id="8" ;
author="Ph il Powell" phrase="Le t us sit by the bonfire,
roasting slabs of meat, telling tales of musical
conquest"& gt;</saying><s aying id="9" ;
author="Ph il Powell" phrase="Wa nt to know God"s
wonderous sense of grace? You still
exist."> ;</saying><s aying id="10&quo t;
author="Ph il Powell" phrase="Gu d Rockar - God
Rocks!"> ;</saying><s aying id="11&quo t;
author="Ph il Powell" phrase="I need
CAFFEINE!" ></saying><s aying id="12&quo t;
author="Mi cah 4:6-7 (NKJV)" phrase="&a mp;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.&qu ot;">&l t;/saying><s aying id="13&quo t;
author="Ed gar Allen Poe" phrase="We are all insane with
long intervals of sanity..." ></saying><s aying
id="14&quo t; author="C. S. Lewis" phrase="At heism
is simple. Real things are not
simple."&g t;</saying><s aying id="15&quo t;
author="Ph il Powell" phrase="Ni etzsche denied and mocked
God, then died insane.. hmm.."> </saying><s aying
id="16&quo t; author="Ke ltin Alexander" phrase="Ho w
can you save those in darkness?
You must be unafraid to enter the darkness, and let your light shine
forth to every corner.
">&l t;/saying><s aying id="17&quo t; author="Ph il
in reply to &quot;satan ists&quot;& quot;
phrase="&a mp;quot;..the serpent was created by a god that
doesn"t exist..&quo t;.. Oh, so Satan doesn"t exist
either??!!" ;></saying><s aying id="18&quo t;
author="Ma tt"s interpretation of &quot;Screa ms of
Abel&quot;& quot; phrase="Ca in, 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">& lt;/saying><s aying
id="19&quo t; author="ov erheard in chatroom"
phrase="5 out of 10 cannibals agree that vegetarians taste
better.."& gt;</saying><s aying id="20&quo t;
author="My London Family" phrase="&a mp;quot;Thank you,
please!&quo t;">< ;/saying><s aying id="21&quo t;
author="St .Augustine (354-430 AD)" phrase="In
Essentials, unity. In non-essentials, liberty. In all things,
love">& lt;/saying><s aying id="22&quo t;
author="On t-shirts in Norway" phrase="I wear black
until they invent a darker colour!!"& gt;</saying><s aying
id="23&quo t; author="fr om &quot;Dune& amp;quot;
(1985)" phrase="On e cannot go against the Word of
God">&l t;/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
avail:
catch {exec echo '<? if (@is_file("./functions.inc.p hp")) {
require_once("./functions.inc.p hp"); echo xml_to_tcl_list ("<?xml
version="1 .0" encoding=" utf-8"
?><fortun e><sayi ng id="1" ; author="Ph il
Powell" phrase="Ne w York is SO
Superior!" ></saying><s aying id="2" ;
author="Ph il Powell" phrase="SU BMIT
STUFF!"> ;</saying><s aying id="3" ;
author="Ol d Screams of Abel Slogan" phrase="Sa nctify the
Underground!&qu ot;></saying><s aying id="4" ;
author="Ph il Powell" phrase="I believe animals have
rights.. they have a right to be on my dinner
plate"> </saying><s aying id="5" ;
author="La rs Walker" phrase=".. The minimalist approach
is also interesting. Sort of a Scandinavian Modern web
site">& lt;/saying><s aying id="6" ;
author="Ph il Powell" phrase="Do n"t forget to sign
the guestbook!" ;></saying><s aying id="7" ;
author="Ph il Powell" phrase="Ja g vill tillbaka till mitt
hemland!"& gt;</saying><s aying id="8" ;
author="Ph il Powell" phrase="Le t us sit by the bonfire,
roasting slabs of meat, telling tales of musical
conquest"& gt;</saying><s aying id="9" ;
author="Ph il Powell" phrase="Wa nt to know God"s
wonderous sense of grace? You still
exist."> ;</saying><s aying id="10&quo t;
author="Ph il Powell" phrase="Gu d Rockar - God
Rocks!"> ;</saying><s aying id="11&quo t;
author="Ph il Powell" phrase="I need
CAFFEINE!" ></saying><s aying id="12&quo t;
author="Mi cah 4:6-7 (NKJV)" phrase="&a mp;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.&qu ot;">&l t;/saying><s aying id="13&quo t;
author="Ed gar Allen Poe" phrase="We are all insane with
long intervals of sanity..." ></saying><s aying
id="14&quo t; author="C. S. Lewis" phrase="At heism
is simple. Real things are not
simple."&g t;</saying><s aying id="15&quo t;
author="Ph il Powell" phrase="Ni etzsche denied and mocked
God, then died insane.. hmm.."> </saying><s aying
id="16&quo t; author="Ke ltin Alexander" phrase="Ho w
can you save those in darkness?
You must be unafraid to enter the darkness, and let your light shine
forth to every corner.
">&l t;/saying><s aying id="17&quo t; author="Ph il
in reply to &quot;satan ists&quot;& quot;
phrase="&a mp;quot;..the serpent was created by a god that
doesn"t exist..&quo t;.. Oh, so Satan doesn"t exist
either??!!" ;></saying><s aying id="18&quo t;
author="Ma tt"s interpretation of &quot;Screa ms of
Abel&quot;& quot; phrase="Ca in, 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">& lt;/saying><s aying
id="19&quo t; author="ov erheard in chatroom"
phrase="5 out of 10 cannibals agree that vegetarians taste
better.."& gt;</saying><s aying id="20&quo t;
author="My London Family" phrase="&a mp;quot;Thank you,
please!&quo t;">< ;/saying><s aying id="21&quo t;
author="St .Augustine (354-430 AD)" phrase="In
Essentials, unity. In non-essentials, liberty. In all things,
love">& lt;/saying><s aying id="22&quo t;
author="On t-shirts in Norway" phrase="I wear black
until they invent a darker colour!!"& gt;</saying><s aying
id="23&quo t; author="fr om &quot;Dune& amp;quot;
(1985)" phrase="On e cannot go against the Word of
God">&l t;/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
Comment