Re: [PHP] fdup & Pipes? (New Thread)

2002-05-30 Thread Miguel Cruz

On Thu, 30 May 2002, Jonathan Rosenberg wrote:
> It's been a long time since I've programmed on Unix, but there
> was a common technique used in C programs for invoking a program
> & allowing the invoker to read & write via standard input/output.
> I believe it used a combination of pipes & the fdup function.
> 
> Is it possible to emulate this behavior in PHP?

You may be able to get a bi-directional pipe out of popen. Depends on your 
particular OS.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] fdup & Pipes?

2002-05-30 Thread 1LT John W. Holmes

> Yes, I realized this after I sent my reply.
> 
> And, please try hard to forgive those of us who do not use the
> "real" software approved by you & the other gods.  We beg your
> forgiveness, oh lord.

You are forgiven, my child.

---John Holmes...

> 
> > -Original Message-
> > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 30, 2002 10:45 AM
> > To: Jonathan Rosenberg
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: [PHP] fdup & Pipes?
> >
> >
> > Yes it was.  In your message you had this header:
> >
> > In-Reply-To:
> > <[EMAIL PROTECTED]>
> >
> > Which means you hit 'Reply' in your crappy Outlook
> > program, deleted the
> > Subject line and posted your message that way.  Please
> > don't do that.
> > Those of us with real email clients see your "new"
> > message inside a thread
> > on a completely different topic.
> >
> > -Rasmus
> >
> > On Thu, 30 May 2002, Jonathan Rosenberg wrote:
> > > I have no idea what you are talking about.  My
> > message was NOT a
> > > reply to a previous post.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] fdup & Pipes?

2002-05-30 Thread Ed Gorski

Yeah that's like me going to the bigwigs and asking if we can dump the 
windows servers.I

At 11:00 AM 5/30/2002 -0400, Leotta, Natalie (NCI/IMS) wrote:
>Like we have much of a choice - I'm sure my bosses would love it if I went
>to them and asked for a "real" email client.
>
>-Original Message-
>From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 30, 2002 11:06 AM
>To: Rasmus Lerdorf
>Cc: [EMAIL PROTECTED]
>Subject: RE: [PHP] fdup & Pipes?
>
>
>Yes, I realized this after I sent my reply.
>
>And, please try hard to forgive those of us who do not use the "real"
>software approved by you & the other gods.  We beg your forgiveness, oh
>lord.
>
> > -Original Message-
> > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 30, 2002 10:45 AM
> > To: Jonathan Rosenberg
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: [PHP] fdup & Pipes?
> >
> >
> > Yes it was.  In your message you had this header:
> >
> > In-Reply-To:
> > <[EMAIL PROTECTED]>
> >
> > Which means you hit 'Reply' in your crappy Outlook
> > program, deleted the
> > Subject line and posted your message that way.  Please
> > don't do that.
> > Those of us with real email clients see your "new"
> > message inside a thread
> > on a completely different topic.
> >
> > -Rasmus
> >
> > On Thu, 30 May 2002, Jonathan Rosenberg wrote:
> > > I have no idea what you are talking about.  My
> > message was NOT a
> > > reply to a previous post.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] fdup & Pipes?

2002-05-30 Thread Leotta, Natalie (NCI/IMS)

Like we have much of a choice - I'm sure my bosses would love it if I went
to them and asked for a "real" email client.

-Original Message-
From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 30, 2002 11:06 AM
To: Rasmus Lerdorf
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] fdup & Pipes?


Yes, I realized this after I sent my reply.

And, please try hard to forgive those of us who do not use the "real"
software approved by you & the other gods.  We beg your forgiveness, oh
lord.

> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 30, 2002 10:45 AM
> To: Jonathan Rosenberg
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] fdup & Pipes?
>
>
> Yes it was.  In your message you had this header:
>
> In-Reply-To: 
> <[EMAIL PROTECTED]>
>
> Which means you hit 'Reply' in your crappy Outlook
> program, deleted the
> Subject line and posted your message that way.  Please
> don't do that.
> Those of us with real email clients see your "new"
> message inside a thread
> on a completely different topic.
>
> -Rasmus
>
> On Thu, 30 May 2002, Jonathan Rosenberg wrote:
> > I have no idea what you are talking about.  My
> message was NOT a
> > reply to a previous post.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] fdup & Pipes?

2002-05-30 Thread Jonathan Rosenberg

Yes, I realized this after I sent my reply.

And, please try hard to forgive those of us who do not use the
"real" software approved by you & the other gods.  We beg your
forgiveness, oh lord.

> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 30, 2002 10:45 AM
> To: Jonathan Rosenberg
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] fdup & Pipes?
>
>
> Yes it was.  In your message you had this header:
>
> In-Reply-To:
> <[EMAIL PROTECTED]>
>
> Which means you hit 'Reply' in your crappy Outlook
> program, deleted the
> Subject line and posted your message that way.  Please
> don't do that.
> Those of us with real email clients see your "new"
> message inside a thread
> on a completely different topic.
>
> -Rasmus
>
> On Thu, 30 May 2002, Jonathan Rosenberg wrote:
> > I have no idea what you are talking about.  My
> message was NOT a
> > reply to a previous post.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] fdup & Pipes?

2002-05-30 Thread Rasmus Lerdorf

Yes it was.  In your message you had this header:

In-Reply-To: <[EMAIL PROTECTED]>

Which means you hit 'Reply' in your crappy Outlook program, deleted the
Subject line and posted your message that way.  Please don't do that.
Those of us with real email clients see your "new" message inside a thread
on a completely different topic.

-Rasmus

On Thu, 30 May 2002, Jonathan Rosenberg wrote:
> I have no idea what you are talking about.  My message was NOT a
> reply to a previous post.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] fdup & Pipes?

2002-05-30 Thread Jonathan Rosenberg

I have no idea what you are talking about.  My message was NOT a
reply to a previous post.

> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 30, 2002 10:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] fdup & Pipes?
>
>
> On Thursday 30 May 2002 21:44, Jonathan Rosenberg wrote:
> > It's been a long time since I've programmed on Unix,
> but there
> > was a common technique used in C programs for
> invoking a program
> > & allowing the invoker to read & write to its standard
> > input/output.  I believe it used a combination of pipes & the
> > fdup function.
> >
> > Is it possible to emulate this same behavior in PHP?
>
> Do us a favour and start a new post rather than
> replying to an existing one.
>
> thanks
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet
> Applications Development *
>
> /*
> A jury consists of twelve persons chosen to decide who
> has the better lawyer.
>   -- Robert Frost
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] fdup & Pipes?

2002-05-30 Thread Jason Wong

On Thursday 30 May 2002 21:44, Jonathan Rosenberg wrote:
> It's been a long time since I've programmed on Unix, but there
> was a common technique used in C programs for invoking a program
> & allowing the invoker to read & write to its standard
> input/output.  I believe it used a combination of pipes & the
> fdup function.
>
> Is it possible to emulate this same behavior in PHP?

Do us a favour and start a new post rather than replying to an existing one.

thanks
-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
A jury consists of twelve persons chosen to decide who has the better lawyer.
-- Robert Frost
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php