Re: [PHP] Piping phpinfo();

2002-01-10 Thread Rasmus Lerdorf

> On Thu, 10 Jan 2002, Rasmus Lerdorf wrote:
>
> Thanks Rasmus, but I am not looking for a command line option.
>
> I need to pipe phpinfo() from a php script, running under apache.
> Normally, phpinfo() will just dump its output onto the browser;
> I want to redirect those output to a logfile instead.
>
> Is there a way out?

Use output buffering.

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Piping phpinfo();

2002-01-10 Thread Kraa de Simon

Maybe you could use:

$fp = fopen ("http://yoursite/phpinfo.php";, "r");

See http://www.php.net/manual/en/function.fopen.php.

Simon.

> -Original Message-
> From: Vaccius ITsec [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 11 januari 2002 8:04
> To: Rasmus Lerdorf
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Piping phpinfo();
> 
> 
> On Thu, 10 Jan 2002, Rasmus Lerdorf wrote:
> 
> Thanks Rasmus, but I am not looking for a command line option.
> 
> I need to pipe phpinfo() from a php script, running under apache.
> Normally, phpinfo() will just dump its output onto the browser;
> I want to redirect those output to a logfile instead.
> 
> Is there a way out?
> 
> -PY
> 
> > php -i >logfile
> > 
> > On Fri, 11 Jan 2002, Vaccius ITsec wrote:
> > 
> > >
> > > Hi,
> > >
> > > How does one redirect phpinfo into some logfile?
> > >
> > > Rgds,
> > > -PY
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> > >
> > 
> > 
> > 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Piping phpinfo();

2002-01-10 Thread Vaccius ITsec

On Thu, 10 Jan 2002, Rasmus Lerdorf wrote:

Thanks Rasmus, but I am not looking for a command line option.

I need to pipe phpinfo() from a php script, running under apache.
Normally, phpinfo() will just dump its output onto the browser;
I want to redirect those output to a logfile instead.

Is there a way out?

-PY

> php -i >logfile
> 
> On Fri, 11 Jan 2002, Vaccius ITsec wrote:
> 
> >
> > Hi,
> >
> > How does one redirect phpinfo into some logfile?
> >
> > Rgds,
> > -PY
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Piping phpinfo();

2002-01-10 Thread Rasmus Lerdorf

php -i >logfile

On Fri, 11 Jan 2002, Vaccius ITsec wrote:

>
> Hi,
>
> How does one redirect phpinfo into some logfile?
>
> Rgds,
> -PY
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Piping phpinfo();

2002-01-10 Thread Vaccius ITsec


Hi,

How does one redirect phpinfo into some logfile?

Rgds,
-PY




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]