On Sun, Mar 23, 2008 at 6:08 PM, Greg Sims <[EMAIL PROTECTED]> wrote:
> Hey There,
>
> I looked at the ob_start manual and found a segment of code that can be used
> to capture the output of a shell script and place it into a log file. One
> of the entries indicates this should work for both ST
We have short tags enabled as our templates work fine with them.
Thanks!
On 7/5/07, Larry Garfield <[EMAIL PROTECTED]> wrote:
If I understand what you're doing correctly, then it should work and I've
done
it many times. First thing you should do, though, is switch from short
tags
to proper ta
If I understand what you're doing correctly, then it should work and I've done
it many times. First thing you should do, though, is switch from short tags
to proper tags, . If you have short tags disabled,
it will not parse I have a template system that takes some data, scrubs it and then wit
# [EMAIL PROTECTED] / 2006-12-20 14:12:11 +:
> I include a php file at the beginning of every web page in this site.
> This include file has an error handling function and starts output
> buffering...
>
> // Start of Error Handler
> error_reporting(E_ALL ^ E_NOTICE);
> ini_set('log_errors','
Hi again,
Just wandering if someone could help me on this one- I'm quite anxious
to get something together. As I said in the last email I just want to
use ob_start("ob_gzhandler") but it doesn't seem to work with the error
function. I think it might be something to do with not being allowed
w
Richard Lynch wrote:
On Thu, November 16, 2006 7:35 am, Mathijs wrote:
I have a question about ob_start() and ob_get_level().
When i use ob_start(), and then check ob_get_level(), it shows me 1.
This is a normal behavior.
Now when i do the following ob_start(array('ClassName',
'ClassMethod')).
Sorry it looked like the rest of your email was part of the previous one.
To answer your question it is better to call session_start() before
ob_start()
On 12/8/05, Zack Bloom <[EMAIL PROTECTED]> wrote:
>
> I have never tried it but if it did work i doubt it would use cookies, it
> would probably
I have never tried it but if it did work i doubt it would use cookies, it
would probably pass it in the addresses or throw an error.
On 12/8/05, Joe Harman <[EMAIL PROTECTED]> wrote:
>
> I guess this was just out of general curiousity... If you started
> 'session_start()' after 'ob_start()' would
Zack Bloom wrote:
Sure, ob_start begins a buffer allowing you to display content in
the browser before your script has finished executing.
Calling ob_start() turns on PHP's output buffering. In other words, it
buffers output from the moment this function is called until the buffer
is flushed
On Thu, Dec 08, 2005 at 01:23:40AM -0500, Joe Harman wrote:
>
> So, the question is really... in what order is the best way to do
> this... I would think that you always want to start a session first...
> but then again, you guys are the experts... i am sure someone knows a
> reason when you shoul
I guess this was just out of general curiousity... If you started
'session_start()' after 'ob_start()' would the sessions work
correctly? k.. maybe I am still confused... lol... I normally do
session_start() before the ob_start()...
Zack Said : 'yes, it will display the content in the buffer
Sure, ob_start begins a buffer allowing you to display content in the
browser before your script has finished executing. This is useful when
loading a time intensive page to tell the user to wait. When you create a
session (provide php is not configured otherwise) php attempts to store a
cookie w
Joe Harman wrote:
Okay...makes sense after you spelled it out to me.
That didn't make sense to me (and I missed the original reply). Mind
elaborating? :-)
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
--
PHP General Mailing List (http://www.php.net/)
To unsu
Okay.. makes sense after you spelled it out to me... LOL... I always
start my session first.. so, that must why i have never had any
problems
Cheers & Thanks!
Joe
On 12/7/05, Zack Bloom <[EMAIL PROTECTED]> wrote:
> yes, it will display the content in the buffer before creating the session.
> If
Hello!
I'm also guessing that it's the LAST line of the file with the
"encodeDomain" function in it that you "include" in your test.php
I'm also guessing that there's a NEWLINE character after the final ?>
in that file on your 5.0.4 box, but that NEWLINE character is *NOT*
there on your 4.0 box
Richard Lynch wrote:
Warning: Cannot modify header information - headers already sent in
test.php on line 4
I'm guessing that the error message has MORE information than that --
like the line number of the file in which the output occurred.
I'm also guessing that it's the LAST line of the fil
On Wed, August 17, 2005 10:12 am, Marten Lehmann wrote:
> I have a function catching the output of a script:
>
> function encodeDomain ($domain) {
> ob_start();
> system("echo '$domain'");
> $output = ob_get_contents();
> ob_end_clean();
> }
>
> And I have a php-
This doesn't help with your ob problem, but if you simply want to
capture the output of the system cmd, then you can use $output =
shell_exec($command) instead of system() IIRC.
On 8/17/05, Marten Lehmann <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a function catching the output of a script:
>
John Kaspar wrote:
Can someone help me with preg_replace?
I want to convert all numbers either 8 or 9 digits in length, into a
link. Such that when it sees:
John Doe, 456890123, is a new employee.
It converts it to:
John Doe, 456890123, is a new
employee.
function callback($buffer) {
// crea
Yep, that's it. I thought I had this as it was working at one time, but
obviously some spaces got added.
Thanks.
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: September 3, 2003 11:13 AM
To: PHP
Subject: Re: [PHP] Ob_start question
* Thus wrote Beauford
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]):
> I am getting this error:
>
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter - headers already sent (output started at
> /usr/local/apache/php/includes/2004server.inc:24) in
> /usr/local/apache/php/includes/re
On 03 September 2003 12:50, Beauford.2005 contributed these pearls of wisdom:
> This is line 5..
>
> $email_error = "If the problem persists email HREF=mailto:[EMAIL PROTECTED]>Webmaster";
>
> but I believe the error message refers to line 5 of
> restricted.in, not 2004server.inc.
>
> Thi
Beauford.2005 wrote:
I am getting this error:
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at
/usr/local/apache/php/includes/2004server.inc:24) in
/usr/local/apache/php/includes/restricted.inc on line 5
I have ob_start
m: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
Sent: September 3, 2003 5:20 AM
To: 'Beauford.2005'; PHP
Subject: RE: [PHP] Ob_start question
On 03 September 2003 03:11, Beauford.2005 contributed these pearls of
wisdom:
> I am getting this error:
>
> Warning: session_start() [func
On 03 September 2003 03:11, Beauford.2005 contributed these pearls of
wisdom:
> I am getting this error:
>
> Warning: session_start() [function.session-start]: Cannot send
> session cache limiter - headers already sent (output started at
> /usr/local/apache/php/includes/2004server.inc:24) in
> /u
Most common cause of this problem is whitespace before the '
I am getting this error:
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at
/usr/local/apache/php/includes/2004server.inc:24) in
/usr/local/apache/php/includes/r
Hi,
I too am running PHP4.3.2 and never took any notice about the session id's
being appended and stuff .. after reading your message I got a little
alarmed, since I'm also using output buffering. So, I turned off my cookies,
restarted my browser and saw that indeed no session id's were appended.
Warning: ob_gzhandler() [ref.outcontrol]: output handler
'ob_gzhandler' cannot
be used twice in /blahblah/includes/bottom.inc on line 25
I can't speak as to why this would only happen occasionally, but I
believe that you should comment out the output_buffering line in the
php.ini file when using
That is what I thought, but it isnt.. after doing some testing it seems to only do it
the first time the page is loaded in the session, if i hit refresh then the problem
doesnt occur.
is it possible that it has anything to do with the session_start and session_name
that is used at the top of th
*guess* you're including the footer twice, or are calling ob_end_flush()
more than once.
not anywhere near sure though!!
Justin
21/03/03 11:33 PM, Mr Percival ([EMAIL PROTECTED]) wrote:
> Hi,
>
> I have a page that has an include at the top of the page and an include at the
> bottom of th
At 11:22 09.03.2003, Alex Lance said:
[snip]
>here's my example:
>
>
>$x = new test();
>
>echo "hey";
>
>// IF next line is uncommented so it manually flushes
>// then the finish method WILL get called. But I need
>// get around calling anything at the *end*
because the flush happens after everything is done, including the fputs
thingy.
you have to call ob_get_contents() or something like that.
I always to this
ob_start();
do something
$data = ob_get_contents();
ob_end_clean();
then I work with the $data later.
but if you don't use the ob_get_co
On Sun, 14 Jul 2002 10:35:13 -0400
"John Holmes" <[EMAIL PROTECTED]> wrote:
> Shouldn't gzip be in quotes, here?? The second argument to strstr...
indeed, that fixes that.. thanks
now, I have a problem with mozilla and netscape.
Although they both accept the ob_start("ob_gzhandler");
netscape
I don't think you need to do the
if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'],gzip)) {
because ob_start("ob_gzhandler"); checks to see if the browser will accept
gzip content before gzipping it..
But I think the reason that it isn't working for you is that you don't have
the correct compression lib
> I wish to compress some data using
> ob_start("ob_gzhandler");
>
> I use
> if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'],gzip)) {
Shouldn't gzip be in quotes, here?? The second argument to strstr...
> ob_start("ob_gzhandler");
> } else {
> ob_start();
> }
> but the compression is nev
On Saturday 18 May 2002 02:48, Jason Soza wrote:
> Either way, is there any way to tell if my output is really being
> compressed by ob_gzhandler?
If you have NN4.X use view source, if the source is empty then compression is
active.
If you're using some form of un*x then:
lynx --mime_header
t;
> Either way, is there any way to tell if my output is really being
> compressed by ob_gzhandler?
>
> Jason Soza
>
> - Original Message -
> From: Miguel Cruz <[EMAIL PROTECTED]>
> Date: Friday, May 17, 2002 10:39 am
> Subject: Re: [PHP] ob_start() and ob_gz
TED]>
Date: Friday, May 17, 2002 10:39 am
Subject: Re: [PHP] ob_start() and ob_gzhandler
> On Fri, 17 May 2002, Jason Soza wrote:
> > Am I doing something wrong? Shouldn't the ob_start() by itself
> just
> > load all output into a buffer and not display it until I call
On Fri, 17 May 2002, Jason Soza wrote:
> Am I doing something wrong? Shouldn't the ob_start() by itself just
> load all output into a buffer and not display it until I call ob_flush
> ()?
Or when you get to the end of execution...
http://php.net/ob_implicit_flush
miguel
--
PHP General Ma
Jason Soza wrote:
>
> Just wondering what would cause the following:
> I have a 512/128 cable connection through my ISP that I'm hosting my
> sites through. I have a 10gb/mo transfer limit (u/l and d/l) so when I
> saw mention of the ob_gzhandler (and mod_gzip for Apache), that kind of
> got me i
40 matches
Mail list logo