[PHP] ob_start strangness

2003-01-24 Thread Serge Paquin
Hello, I am trying to get ob_start to work the way I expect but I am running into some problems. Take the following example code: /* Start of code snippet */ function ob_spit_content_length ($buffer) { $len=strlen($buffer); if($len>0) Header( "Content-Length: $le

[PHP] Re: ob_start strangness

2003-01-24 Thread Serge Paquin
Ok. It was a late night. A fresh morning helped me solve my own problem. I was using ob_end_clean rather than ob_end_flush. I though I was going crazy! Serge. In article <[EMAIL PROTECTED]>, "Serge Paquin" <[EMAIL PROTECTED]> wrote: > Hello, > > I am

[PHP] ob woes...

2003-01-24 Thread Serge Paquin
Hello All, I am making headway but I still seem to be having some problems. Whenever I have executing I get the following message: Warning: ob_gzhandler() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in This happens on ob_end_flush() The strange thing is that ob_star

RE: [PHP] SSH change password!

2003-01-24 Thread Serge Paquin
Not the more secure solution but should do the trick: I will assume that your webserver is run as apache.apache Make a copy of passwd and call it (for example) apache_passwd execute the following as root: $>chown root.apache apache_passwd $>chmod u+rwxs,g+rwx,o-rwx Notice the "s" in the u+. Th

[PHP] ob_gzhandler bug???

2003-01-24 Thread Serge Paquin
Here is a very simple APP to test my problem. Below you can see my result. This is done on PHP 4.3.0 Serge. 0) { Header( "Content-Length: $len" ); } return $buffer; } ob_start("ob_spit_content_length"); ob_start("ob_gzhandler"); ?> Test Message Test:

Re: [PHP] ob_gzhandler bug???

2003-01-24 Thread Serge Paquin
I found the problem. It's a bug in PHP 4.3.0 and is fixed in CVS which I just confirmed... Serge. In article <007a01c2c3e1$bab70650$a629089b@TBHHCCDR>, "1lt John W. Holmes" <[EMAIL PROTECTED]> wrote: > Is output_handler set in your php.ini? > > ---John Holmes... -- PHP General Mailing List (

[PHP] Compile problem.

2003-03-21 Thread Serge Paquin
Hello, I am just upgrading to mySQL 4. As per the recommendation at www.mysql.com I am recompiling programs that link against the mysql client. When I try to compile PHP-4.3.1 I get many many lines similar to: /usr/lib/mysql/libmysqlclient.a(net.o): In function `net_request_file': net.o(

Re: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Serge Paquin
Almost. It's not the Location Header you want to play with. header("HTTP/1.0 403 Forbidden"); will do the job. Serge. On Thu, 27 Mar 2003 09:41:57 -0600 "Christopher Ditty" <[EMAIL PROTECTED]> wrote: > I have a customer that wants to return a 403 Forbidden header/page when > certain condition

Re: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Serge Paquin
This this point the only thing you have done is overridden the status code. You still have to send something to the browser. HTTP/1.0 403 Forbidden is not a page or a location. It's a result code. You could then do something as simple as: print "You are forbidden to view this page"; Serge.

[PHP] ob_gzhandler

2002-11-07 Thread Serge Paquin
Hello, Is their anyway to use ob_gzhandler along with another callback? I've tried the following which does not work: function DoCache($buffer) { /* Do a bunch of stuff */ return ob_gzhandler($buffer); } ob_start("DoCache"); ... The program and such ... ob_end_flush(); Can anybo

Re: [PHP] ob_gzhandler

2002-11-08 Thread Serge Paquin
ginal Message - From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 08, 2002 4:00 AM Subject: Re: [PHP] ob_gzhandler > At 07:45 08.11.2002, Serge Paquin said: > [snip] > >Hel

Re: [PHP] ob_gzhandler

2002-11-08 Thread Serge Paquin
er 08, 2002 4:00 AM Subject: Re: [PHP] ob_gzhandler > At 07:45 08.11.2002, Serge Paquin said: > [snip] > >Hello, > > > >Is their anyway to use ob_gzhandler along with another callback? I've > >tried the following which does no

Re: [PHP] ob_gzhandler

2002-11-08 Thread Serge Paquin
king fine that's the part that gets me. Serge. On Fri, 08 Nov 2002 15:58:12 +0100 Ernest E Vogelsinger <[EMAIL PROTECTED]> wrote: > At 15:48 08.11.2002, Serge Paquin spoke out and said: > [snip] > >I get no output at all. > > &g

[PHP] Re: confirm unsubscribe from php-general@lists.php.net

2002-11-08 Thread Serge Paquin
On 8 Nov 2002 16:33:54 - [EMAIL PROTECTED] wrote: > Hi! This is the ezmlm program. I'm managing the > [EMAIL PROTECTED] mailing list. > > I'm working for my owner, who can be reached > at [EMAIL PROTECTED] > > To confirm that you would like > >[EMAIL PROTECTED] > > removed from the php