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 6 4056
In article <11**********************@l39g2000cwd.googlegroups .com>,
comp.lang.php <ph**************@gmail.comwrote:
I am trying to pipe in some auto-generated PHP into php.exe, to no
avail:
simple."></saying><saying id="15"
author="Phil Powell" phrase="Nietzsche denied and mocked
God, then died insane.. hmm.."></saying><saying
"Nietzsche denied and mocked God, then died insane.. hmm.."
A banana is green when picked, but turns brown with time... hmm..
Just wait until Steve sees this thread. lol
If you are using UNIX, have you tried using a cat to pipe to PHP?
cat <<HERE | php
stuff
goes
here
HERE
--
Koncept <<
"The snake that cannot shed its skin perishes. So do the spirits who are
prevented from changing their opinions; they cease to be a spirit." -Nietzsche
Koncept wrote:
In article <11**********************@l39g2000cwd.googlegroups .com>,
comp.lang.php <ph**************@gmail.comwrote:
I am trying to pipe in some auto-generated PHP into php.exe, to no
avail:
simple."></saying><saying id="15"
author="Phil Powell" phrase="Nietzsche denied and mocked
God, then died insane.. hmm.."></saying><saying
"Nietzsche denied and mocked God, then died insane.. hmm.."
A banana is green when picked, but turns brown with time... hmm..
Just wait until Steve sees this thread. lol
If you are using UNIX, have you tried using a cat to pipe to PHP?
cat <<HERE | php
stuff
goes
here
HERE
Yes, and it kept giving me the error "input file not specified" when I
did that too :( I wound up giving up and doing the whole thing
entirely in TCL.
Phil
>
--
Koncept <<
"The snake that cannot shed its skin perishes. So do the spirits who are
prevented from changing their opinions; they cease to be a spirit." -Nietzsche
comp.lang.php wrote:
I am trying to pipe in some auto-generated PHP into php.exe, to no
avail:
In the man page for php it suggest you to use the -r option if you want to use
code as a part of the argument.
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"?
As you seems to use microsoft, maybe they have adjusted it to the microsofts
way of things and uses /r, if you can't use that either, then you have to pipe
the stream into a file which you then run, if that don't work, switch OS.
//Aho
J.O. Aho wrote:
comp.lang.php wrote:
I am trying to pipe in some auto-generated PHP into php.exe, to no
avail:
In the man page for php it suggest you to use the -r option if you want to use
code as a part of the argument.
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"?
As you seems to use microsoft, maybe they have adjusted it to the microsofts
way of things and uses /r, if you can't use that either, then you have to pipe
the stream into a file which you then run, if that don't work, switch OS.
Sorry no, I'm using Linux RHEL 4 on 2 machines and HP-UX on the other.
None of them are Microsoft.
Phil
>
//Aho
comp.lang.php wrote:
J.O. Aho wrote:
>comp.lang.php wrote:
>>I am trying to pipe in some auto-generated PHP into php.exe, to no avail:
In the man page for php it suggest you to use the -r option if you want to use code as a part of the argument.
>>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"?
As you seems to use microsoft, maybe they have adjusted it to the microsofts way of things and uses /r, if you can't use that either, then you have to pipe the stream into a file which you then run, if that don't work, switch OS.
Sorry no, I'm using Linux RHEL 4 on 2 machines and HP-UX on the other.
None of them are Microsoft.
In that case, don't use the php.exe but php.
You can also try to generate '<?PHP' and '?>' around your code, and see if
that helps you.
//Aho
J.O. Aho wrote:
comp.lang.php wrote:
J.O. Aho wrote:
comp.lang.php wrote: I am trying to pipe in some auto-generated PHP into php.exe, to no avail:
In the man page for php it suggest you to use the -r option if you want to use
code as a part of the argument.
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"?
As you seems to use microsoft, maybe they have adjusted it to the microsofts
way of things and uses /r, if you can't use that either, then you have to pipe
the stream into a file which you then run, if that don't work, switch OS.
Sorry no, I'm using Linux RHEL 4 on 2 machines and HP-UX on the other.
None of them are Microsoft.
In that case, don't use the php.exe but php.
You completely confused me
>
You can also try to generate '<?PHP' and '?>' around your code, and see if
that helps you.
//Aho
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: TEK |
last post by:
Hello
I'm wondering if anyone out there might give some
input/suggestions/viewpoints around the Command pattern.
In my case, the number one priority for using the pattern is undo support.
Some...
|
by: Siemel Naran |
last post by:
Hi. I'm writing a command shell that reads commands from standard input.
At this point I have the command in a std::string. Now I want to execute
this command in the shell. From the Borland...
|
by: FluffyCat |
last post by:
New on November 29, 2005 for www.FluffyCat.com PHP 5 Design Pattern
Examples - the Command Pattern.
Since you all enjoyed the Visitor Pattern so much yesterday, today I
have the Command Pattern...
|
by: Good Man |
last post by:
Hi there
I am trying to execute a custom-built java program on my linux server via
PHP. Basically, a user uploads files via PHP, and then the java program
performs some action on these files.
...
|
by: Michael Roebuck |
last post by:
Hi all
I'm very new to VB - I am trying to run a DOS command from within a VB2005
asp.net web site using a command button?
The DOS command will take the form of the command followed by several...
|
by: jobs239 |
last post by:
Can I use this line inside C program "system(java -jar <jarfilename>)"
to run a java program from C?
Or do I have to use some JNI interface.?
|
by: Chris Carlen |
last post by:
Hi:
Having completed enough serial driver code for a TMS320F2812
microcontroller to talk to a terminal, I am now trying different
approaches to command interpretation.
I have a very simple...
|
by: czerwww |
last post by:
Can someone please help me? I have class for database connection and I need set command.commandTimeout. How can I do that?
Code:
Imports System.Data.SqlClient
Imports System.Data
Public Class...
|
by: creative1 |
last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |