Re: [PHP] Output to File Instead of Browser

2013-08-20 Thread Jim Giner
On 8/20/2013 3:20 PM, Daniel Pöllmann wrote: Buffering is the more comftable way because if you write all html to a variable, output that might be created in a function, you did not modify will not be included. Non critical errors that create an output (notice/warning) will not ve included as we

Re: [PHP] Output to File Instead of Browser

2013-08-20 Thread Daniel Pöllmann
Buffering is the more comftable way because if you write all html to a variable, output that might be created in a function, you did not modify will not be included. Non critical errors that create an output (notice/warning) will not ve included as well. Another way would be to create a script wh

Re: [PHP] Output to File Instead of Browser

2013-08-20 Thread Serge Fonville
> > How can I have the form generated from my script but either saved to a > file or the output returned to another script? if you just want to output the generated output of the script to a file you can use output buffering http://www.php.net/manual/en/book.outcontrol.php HTH Kind regards/met v

Re: [PHP] Output to File Instead of Browser

2013-08-20 Thread Bastien
On 2013-08-20, at 12:38 PM, Floyd Resler wrote: > I have a php file that generates a form. Of course, this displays in the > browser. How can I have the form generated from my script but either saved > to a file or the output returned to another script? > > Thanks! > Floyd > I guess it d

[PHP] Output to File Instead of Browser

2013-08-20 Thread Floyd Resler
I have a php file that generates a form. Of course, this displays in the browser. How can I have the form generated from my script but either saved to a file or the output returned to another script? Thanks! Floyd

[PHP] output command and php

2012-09-28 Thread El Ale...
People good afternoon am using a system called the collects gammu sms my cell with a command "gammu getallsms" sms me when I pick up the following: gammu getallsms> messages.txt and I keep it in a text file with the following format: messages.txt folder, input code, tray number: +54025487555 S

Fwd: [PHP] output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file

2012-09-26 Thread tamouse mailing lists
Crikey, forgot to include the list. -- Forwarded message -- From: tamouse mailing lists Date: Wed, Sep 26, 2012 at 1:57 AM Subject: Re: [PHP] output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file To: edward eric pedersson On Fri, Sep

[PHP] output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file

2012-09-21 Thread edward eric pedersson
Hi My host, Host Papa (yes, they are rubbish) has disabled mod_deflate, mod_gzip and php_value auto_prepend_file so can't use them in .htaccess file. I would move host but I did not realise this was the case until I wanted to make use of them. I am tied in for three years so need to find a workaro

Re: [PHP] [OUTPUT BUFFER] - problems with redirects

2010-08-19 Thread Adam Richardson
On Thu, Aug 19, 2010 at 6:01 PM, Tristan wrote: > So, I'm have this site where all this code was developed and the logic sits > in different plugins throughout a template. So, html is output and then > hits > one of these plugins. Plugins do some processing and then hit a > header(location...) re

[PHP] [OUTPUT BUFFER] - problems with redirects

2010-08-19 Thread Tristan
So, I'm have this site where all this code was developed and the logic sits in different plugins throughout a template. So, html is output and then hits one of these plugins. Plugins do some processing and then hit a header(location...) redirect. So, problem is they developed code with these heade

Re: [PHP] output buffer

2009-12-29 Thread kranthi
most probable error in your case is the dev server has output buffering enabled while it is turned off on the live server. try phpinfo to verify -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] output buffer

2009-12-29 Thread Marc Fromm
] Sent: Tuesday, December 29, 2009 1:38 PM To: Marc Fromm Subject: Re: [PHP] output buffer Hi. There're some other code that is sent to client. You must send cookie first, at header, then the other data. Please send code to view your case. With regards, Alexey On Wed, Dec 30, 2009 at 12:09 AM,

Re: [PHP] output buffer

2009-12-29 Thread Bastien Koert
On Tue, Dec 29, 2009 at 4:09 PM, Marc Fromm wrote: > I am receiving the "Cannot send session cookie - headers already sent" > message even though I am using ob_start() at the top of my script. > The php.ini file has output_buffering set to 4096 4096. > My server is running Red Hat Enterprise Linu

[PHP] output buffer

2009-12-29 Thread Marc Fromm
I am receiving the "Cannot send session cookie - headers already sent" message even though I am using ob_start() at the top of my script. The php.ini file has output_buffering set to 4096 4096. My server is running Red Hat Enterprise Linux 5.2 I am using PHP 5.1.6 Is there some other setting I ne

Re: [PHP] Output buffering

2009-10-07 Thread David Otton
2009/10/7 Arno Kuhl : > Thanks David. After taking another look at the description for ob_start() I > began to suspect there was a difference, but the manual doesn't mention > anything about it. And the fact they use the same terminolgy for both the > settings and the functions is confusing. I can

Re: [PHP] Output buffering

2009-10-07 Thread Shawn McKenzie
Arno Kuhl wrote: > > Thanks David. After taking another look at the description for ob_start() I > began to suspect there was a difference, but the manual doesn't mention > anything about it. And the fact they use the same terminolgy for both the > settings and the functions is confusing. I can se

RE: [PHP] Output buffering

2009-10-07 Thread Arno Kuhl
From: djo...@gmail.com [mailto:djo...@gmail.com] On Behalf Of David Otton Sent: 07 October 2009 10:54 AM To: a...@dotcontent.net Cc: php-general@lists.php.net Subject: Re: [PHP] Output buffering 2009/10/7 Arno Kuhl : > According to the manual I shouldn't see anything at

Re: [PHP] Output buffering

2009-10-07 Thread David Otton
2009/10/7 Arno Kuhl : > According to the manual I shouldn't see anything at all when > output_buffering is off (or if memory serves me correctly I should see an > error about "headers already sent" or something). Looking at phpinfo > confirms the value echoed by the script. Has something changed w

[PHP] Output buffering

2009-10-07 Thread Arno Kuhl
Has there been a change to the way output buffering works? The manual states for ob_get_contents() "This will return the contents of the output buffer or FALSE, if output buffering isn't active." But the following works in php4.4.4 and php5.2.6 whether output buffering is on or not "; echo "o

Re: [PHP] output buffer with Chrome issue.

2009-05-01 Thread Dan Joseph
On Fri, May 1, 2009 at 10:55 AM, Robert Cummings wrote: > > I presume your backend script is running something that passes the data > to the browser un-interrupted... maybe a shell script? You can wrap this > in popen() or proc_open() and read the output as you would a file. This > can then be que

Re: [PHP] output buffer with Chrome issue.

2009-05-01 Thread Robert Cummings
On Fri, 2009-05-01 at 10:42 -0400, Dan Joseph wrote: > On Fri, May 1, 2009 at 10:40 AM, Robert Cummings wrote: > > > On Fri, 2009-05-01 at 10:34 -0400, Dan Joseph wrote: > > > > > > Ajax unfortunately isn't an option in this particular case. > > > > Why? Maybe you're thinking about it wrong. > > >

Re: [PHP] output buffer with Chrome issue.

2009-05-01 Thread Dan Joseph
On Fri, May 1, 2009 at 10:40 AM, Robert Cummings wrote: > On Fri, 2009-05-01 at 10:34 -0400, Dan Joseph wrote: > > > > Ajax unfortunately isn't an option in this particular case. > > Why? Maybe you're thinking about it wrong. > > Maybe, I'm open to suggestions: Here's the basic way the applicatio

Re: [PHP] output buffer with Chrome issue.

2009-05-01 Thread Robert Cummings
On Fri, 2009-05-01 at 10:34 -0400, Dan Joseph wrote: > > Ajax unfortunately isn't an option in this particular case. Why? Maybe you're thinking about it wrong. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net

Re: [PHP] output buffer with Chrome issue.

2009-05-01 Thread Dan Joseph
On Fri, May 1, 2009 at 10:29 AM, Robert Cummings wrote: > > Have you tried a bigger pad? Try... oh I dunno... 40096. if that works > then you can chop back until you find the threshold. Seems to be though > that it might be better done as AJAX. > > Hi, I tried that, didn't work at all even up to

Re: [PHP] output buffer with Chrome issue.

2009-05-01 Thread Robert Cummings
On Fri, 2009-05-01 at 10:24 -0400, Dan Joseph wrote: > Hi Everyone, > > I'm trying to get Chrome to output html information as it comes thru. We > have an iframe running a php script, and when the php script receives > information, it outputs it. FF, IE, and Safari all work just fine, displays >

[PHP] output buffer with Chrome issue.

2009-05-01 Thread Dan Joseph
Hi Everyone, I'm trying to get Chrome to output html information as it comes thru. We have an iframe running a php script, and when the php script receives information, it outputs it. FF, IE, and Safari all work just fine, displays the info as it comes in. However, Chrome is not. It will only

Re: [PHP] Output to matrix printer

2008-10-15 Thread Andrew Ballard
On Tue, Oct 14, 2008 at 6:25 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Tue, 2008-10-14 at 19:15 -0300, Miles Thompson wrote: >> On Tue, Oct 14, 2008 at 6:23 PM, Dušan Novaković <[EMAIL PROTECTED]> wrote: >> >> > I have some request to sent text to matrix printer to print ticket for >> > t

Re: [PHP] Output to matrix printer

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 19:15 -0300, Miles Thompson wrote: > On Tue, Oct 14, 2008 at 6:23 PM, Dušan Novaković <[EMAIL PROTECTED]> wrote: > > > I have some request to sent text to matrix printer to print ticket for > > theater. Is it possible to do that whit some php functions? Main point > > is how

Re: [PHP] Output to matrix printer

2008-10-14 Thread Miles Thompson
On Tue, Oct 14, 2008 at 6:23 PM, Dušan Novaković <[EMAIL PROTECTED]> wrote: > I have some request to sent text to matrix printer to print ticket for > theater. Is it possible to do that whit some php functions? Main point > is how to control length of paper that will be drawn inside and to > print

[PHP] Output to matrix printer

2008-10-14 Thread Dušan Novaković
I have some request to sent text to matrix printer to print ticket for theater. Is it possible to do that whit some php functions? Main point is how to control length of paper that will be drawn inside and to print text on a specific place. It would be nice if somebody can write the code about this

Re: [PHP] Output text status on a long class

2008-10-14 Thread Jim Lucas
Boyd, Todd M. wrote: >> -Original Message- >> From: Jim Lucas [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, October 14, 2008 11:56 AM >> To: Boyd, Todd M. >> Cc: php php >> Subject: Re: [PHP] Output text status on a long class >> >> Boyd, To

RE: [PHP] Output text status on a long class

2008-10-14 Thread Boyd, Todd M.
> -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2008 11:56 AM > To: Boyd, Todd M. > Cc: php php > Subject: Re: [PHP] Output text status on a long class > > Boyd, Todd M. wrote: > >> > >> Als

Re: [PHP] Output text status on a long class

2008-10-14 Thread Jim Lucas
Boyd, Todd M. wrote: >> -Original Message- >> From: Jim Lucas [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, October 14, 2008 11:43 AM >> To: Chrome >> Cc: 'Stut'; 'Andrew Ballard'; 'Jay Moore'; php-general@lists.php.net >>

RE: [PHP] Output text status on a long class

2008-10-14 Thread Boyd, Todd M.
> -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2008 11:43 AM > To: Chrome > Cc: 'Stut'; 'Andrew Ballard'; 'Jay Moore'; php-general@lists.php.net > Subject: Re: [PHP] Output text status on a long

Re: [PHP] Output text status on a long class

2008-10-14 Thread Jim Lucas
Chrome wrote: >> On 14 Oct 2008, at 16:51, Chrome wrote: >>> For the record I have included a 256 char long whitespace string >>> along with any prospective output but still no joy >>> >>> Opera 9.60 reliably informs me it's received 258 bytes but displays >>> nothing >>> >>> I'll carry on with thi

Re: [PHP] Output text status on a long class

2008-10-14 Thread Jim Lucas
Chrome wrote: >> On 14 Oct 2008, at 16:51, Chrome wrote: >>> For the record I have included a 256 char long whitespace string >>> along with any prospective output but still no joy >>> >>> Opera 9.60 reliably informs me it's received 258 bytes but displays >>> nothing >>> >>> I'll carry on with thi

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> On 14 Oct 2008, at 16:51, Chrome wrote: > > For the record I have included a 256 char long whitespace string > > along with any prospective output but still no joy > > > > Opera 9.60 reliably informs me it's received 258 bytes but displays > > nothing > > > > I'll carry on with this for a little

Re: [PHP] Output text status on a long class

2008-10-14 Thread Andrew Ballard
On Tue, Oct 14, 2008 at 11:30 AM, Chrome <[EMAIL PROTECTED]> wrote: >> Stut wrote: >> > On 14 Oct 2008, at 15:56, Chrome wrote: >> >> I have a class that takes a while to run and am wanting to push some >> >> output >> >> to the browser while it's doing its stuff. Is that possible? >> >> >> >> Her

Re: [PHP] Output text status on a long class

2008-10-14 Thread Stut
On 14 Oct 2008, at 16:51, Chrome wrote: For the record I have included a 256 char long whitespace string along with any prospective output but still no joy Opera 9.60 reliably informs me it's received 258 bytes but displays nothing I'll carry on with this for a little before blaming the br

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> On Tue, Oct 14, 2008 at 11:30 AM, Chrome <[EMAIL PROTECTED]> wrote: > >> Stut wrote: > >> > On 14 Oct 2008, at 15:56, Chrome wrote: > >> >> I have a class that takes a while to run and am wanting to push > some > >> >> output > >> >> to the browser while it's doing its stuff. Is that possible? >

[PHP] Output text status on a long class

2008-10-14 Thread Chrome
Hi all I have a class that takes a while to run and am wanting to push some output to the browser while it's doing its stuff. Is that possible? Here's what I'd like: Connecting to server... Done! Retrieving categories... Done! ... All I can get it to do is output all of the text at the end of

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> Stut wrote: > > On 14 Oct 2008, at 15:56, Chrome wrote: > >> I have a class that takes a while to run and am wanting to push some > >> output > >> to the browser while it's doing its stuff. Is that possible? > >> > >> Here's what I'd like: > >> > >> Connecting to server... Done! > >> Retrieving

Re: [PHP] Output text status on a long class

2008-10-14 Thread Andrew Ballard
On Tue, Oct 14, 2008 at 11:19 AM, Chrome <[EMAIL PROTECTED]> wrote: > > >> -Original Message- >> From: uaca man [mailto:[EMAIL PROTECTED] >> Sent: 14 October 2008 16:10 >> To: php-general@lists.php.net >> Subject: Re: [PHP] Output text status on

Re: [PHP] Output text status on a long class

2008-10-14 Thread Jay Moore
Stut wrote: On 14 Oct 2008, at 15:56, Chrome wrote: I have a class that takes a while to run and am wanting to push some output to the browser while it's doing its stuff. Is that possible? Here's what I'd like: Connecting to server... Done! Retrieving categories... Done! ... All I can get i

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> -Original Message- > From: uaca man [mailto:[EMAIL PROTECTED] > Sent: 14 October 2008 16:10 > To: php-general@lists.php.net > Subject: Re: [PHP] Output text status on a long class > > Dan, > > Try > echo "some text"; > ob_flush() <http

Re: [PHP] Output text status on a long class

2008-10-14 Thread uaca man
Dan, Try echo "some text"; ob_flush() ; *flush()* ; also take a look at the documentation at: http://br2.php.net/manual/en/function.flush.php Angelo 2008/10/14 Chrome <[EMAIL PROTECTED]> > Hi all > > I have a class that takes a while to run a

Re: [PHP] Output text status on a long class

2008-10-14 Thread Stut
On 14 Oct 2008, at 15:56, Chrome wrote: I have a class that takes a while to run and am wanting to push some output to the browser while it's doing its stuff. Is that possible? Here's what I'd like: Connecting to server... Done! Retrieving categories... Done! ... All I can get it to do is o

Re: [PHP] Output Blank?

2008-06-23 Thread Dan Shirah
> >// Initialize/clear the contents of the $row variable >$row = array(); > >// You probably need to reset the $field_name var with each >// iteration over it. from what I understand, foreach will move >// the internal pointer of the array to the end. Then

Re: [PHP] Output Blank?

2008-06-23 Thread Dan Shirah
AH HA! Got it! The problem was I did not need to loop through the array headers to associate the data. So I removed: foreach($field_name as $fieldName) { // Loop through the array of headers as we fetch the data $row[] = parseCSVComments($info->$fieldName); } // End loop And ran it as:

Re: [PHP] Output Blank?

2008-06-23 Thread Jim Lucas
Dan Shirah wrote: Having some issues with outputting my table data as an array. In the code below I am outputting the column titles of my table into an excel spreadsheet. I get the column titles just fine in Excel. if($numberFields) { // Check if we need to output anything $types = ifx_fieldty

Re: [PHP] Output Blank?

2008-06-23 Thread Dan Shirah
> > Is there a particular reason you're telling PHP that, "for each > $types variable, set this key of the $field_name array to equal > $data_type, and do nothing else about it"? The ifx_fieldtypes function returns the data as an array with the field names as the key, and the field types as the d

Re: [PHP] Output Blank?

2008-06-23 Thread Dan Shirah
When I have => $data_type in there my column title values for $field_name display correctly. If I take out => $data_type it displays the the column type. IE SQLNUMINT SQLCHAR...instead of the column title. On 6/23/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 23, 2008 at 1:46 PM, Da

Re: [PHP] Output Blank?

2008-06-23 Thread Daniel Brown
On Mon, Jun 23, 2008 at 1:46 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > > if($numberFields) { // Check if we need to output anything > $types = ifx_fieldtypes($query); > if (isset($types)) { > foreach($types as $field_name[] => $data_type) { > } > } Is there a particular reason you're te

[PHP] Output Blank?

2008-06-23 Thread Dan Shirah
Having some issues with outputting my table data as an array. In the code below I am outputting the column titles of my table into an excel spreadsheet. I get the column titles just fine in Excel. if($numberFields) { // Check if we need to output anything $types = ifx_fieldtypes($query); if (is

Re: [PHP] output buffering in CLI script.

2008-02-29 Thread Jochem Maas
Greg Donald schreef: On 2/28/08, Casey <[EMAIL PROTECTED]> wrote: #!/usr/bin/php Or the entirely more portable version: #!/usr/bin/env php thanks for the tip :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] output buffering in CLI script.

2008-02-29 Thread Greg Donald
On 2/28/08, Casey <[EMAIL PROTECTED]> wrote: > #!/usr/bin/php Or the entirely more portable version: #!/usr/bin/env php http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Jim Lucas
Casey wrote: On Thu, Feb 28, 2008 at 3:39 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: hi there, I can't seem to manage to buffer output (of an included file) in a CLI script, the following does not work: // buffer output so we can avoid the shebang line being output (an

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Casey
On Thu, Feb 28, 2008 at 3:39 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > hi there, > > I can't seem to manage to buffer output (of an included file) in a CLI > script, > the following does not work: > > > // buffer output so we can avoid the shebang line being > output (an

Re: [PHP] Re: [SOLVEDish] Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Jochem Maas
Nathan Rixham schreef: how's this? #!/usr/bin/php data = ltrim($bucket->data,"#!/usr/bin/php\n"); $consumed += $bucket->datalen; stream_bucket_append($out, $bucket); } return PSFS_PASS_ON; } } stream_filter_register("trim.shebang", "trimshebang"); include "php://filter/rea

Re: [PHP] [NOT SOLVEDish] Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Jochem Maas
Jochem Maas schreef: ... indeed ... I tested it and it works on my server too. my code is no different to yours with regard to the context of the problem. so what's going on. I think (I know) I forgot to mention one tiny little detail. the whole 'include' code occurs in a script that forks

Re: [PHP] Re: [SOLVEDish] Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Nathan Rixham
Aschwin Wesselius wrote: Me thinks that when shebang doesn't fit /usr/bin/php (which happens sometimes) you're doomed. [snip] good point.. modified to use BINDIR: #!/usr/bin/php data = ltrim($bucket->data,"#!".PHP_BINDIR."/php\n"); $consumed += $bucket->datalen; stream_bucket_

Re: [PHP] Re: [SOLVEDish] Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Aschwin Wesselius
Nathan Rixham wrote: how's this? #!/usr/bin/php data = ltrim($bucket->data,"#!/usr/bin/php\n"); $consumed += $bucket->datalen; stream_bucket_append($out, $bucket); } return PSFS_PASS_ON; } } stream_filter_register("trim.shebang", "trimshebang"); include "php://filter/read=

[PHP] Re: [SOLVEDish] Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Nathan Rixham
how's this? #!/usr/bin/php data = ltrim($bucket->data,"#!/usr/bin/php\n"); $consumed += $bucket->datalen; stream_bucket_append($out, $bucket); } return PSFS_PASS_ON; } } stream_filter_register("trim.shebang", "trimshebang"); include "php://filter/read=trim.shebang/resource=

[PHP] [SOLVEDish] Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Jochem Maas
Stuart Dallas schreef: On 28 Feb 2008, at 12:29, Jochem Maas wrote: Stuart Dallas schreef: On 28 Feb 2008, at 11:52, Stut wrote: On 28 Feb 2008, at 11:39, Jochem Maas wrote: I can't seem to manage to buffer output (of an included file) in a CLI script, the following does not work:

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Jochem Maas
Nathan Rixham schreef: Jochem Maas wrote: ... -Stut bit of false logic here but have you tried: eval(ltrim(file_get_contents($script),$shebang)); haven't tried it, did consider it. I hate eval() :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Aschwin Wesselius
Jochem Maas wrote: I mean that the shebang line at the top of the included file is output to stdout even when I turn on output buffering on prior to including the file. nothing else is output but that's because the script doesn't generate any further output - it logs everything instead - and

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Stuart Dallas
On 28 Feb 2008, at 12:29, Jochem Maas wrote: Stuart Dallas schreef: On 28 Feb 2008, at 11:52, Stut wrote: On 28 Feb 2008, at 11:39, Jochem Maas wrote: I can't seem to manage to buffer output (of an included file) in a CLI script, the following does not work: // buffer outp

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Nathan Rixham
Jochem Maas wrote: Stut schreef: On 28 Feb 2008, at 11:39, Jochem Maas wrote: I can't seem to manage to buffer output (of an included file) in a CLI script, the following does not work: // buffer output so we can avoid the shebang line being output (and strip it from the

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Jochem Maas
Stuart Dallas schreef: On 28 Feb 2008, at 11:52, Stut wrote: On 28 Feb 2008, at 11:39, Jochem Maas wrote: I can't seem to manage to buffer output (of an included file) in a CLI script, the following does not work: // buffer output so we can avoid the shebang line being out

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Jochem Maas
Stut schreef: On 28 Feb 2008, at 11:39, Jochem Maas wrote: I can't seem to manage to buffer output (of an included file) in a CLI script, the following does not work: // buffer output so we can avoid the shebang line being output (and strip it from the output we log)

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Jochem Maas
Andrés Robinet schreef: -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Thursday, February 28, 2008 6:39 AM To: [php] PHP General List Subject: [PHP] output buffering in CLI script. hi there, I can't seem to manage to buffer output (of an included file) in

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Stuart Dallas
On 28 Feb 2008, at 11:52, Stut wrote: On 28 Feb 2008, at 11:39, Jochem Maas wrote: I can't seem to manage to buffer output (of an included file) in a CLI script, the following does not work: // buffer output so we can avoid the shebang line being output (and strip it from

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Stut
On 28 Feb 2008, at 11:39, Jochem Maas wrote: I can't seem to manage to buffer output (of an included file) in a CLI script, the following does not work: // buffer output so we can avoid the shebang line being output (and strip it from the output we log)

RE: [PHP] output buffering in CLI script.

2008-02-28 Thread Andrés Robinet
> -Original Message- > From: Jochem Maas [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 28, 2008 6:39 AM > To: [php] PHP General List > Subject: [PHP] output buffering in CLI script. > > hi there, > > I can't seem to manage to buffer output (of an

[PHP] output buffering in CLI script.

2008-02-28 Thread Jochem Maas
hi there, I can't seem to manage to buffer output (of an included file) in a CLI script, the following does not work: // buffer output so we can avoid the shebang line being output (and strip it from the output we log) $oldIFvalue = ini_set('implicit_flu

Re: [PHP] output-buffer and memory-issue

2007-10-25 Thread Werner Schneider
> > Then see if you get any errors. Although, if > you're > > seg faulting, you > > still won't see an error since the program just > > dies. > Thanks for your reply. It seems that this is > happening, becaus even with your code I get no > errors. > It could be as well that the script dies before

Re: [PHP] output-buffer and memory-issue

2007-10-24 Thread Werner Schneider
--- Robert Cummings <[EMAIL PROTECTED]> schrieb: > On Wed, 2007-10-24 at 21:07 +, Werner Schneider > wrote: > > Hi, I got a strange problem: Using php 4.4.x, I > capture the whole output for a webpage into the > output-buffer by using ob_start and ob_get_clean, > because I got to make some rep

Re: [PHP] output-buffer and memory-issue

2007-10-24 Thread Robert Cummings
On Wed, 2007-10-24 at 21:07 +, Werner Schneider wrote: > Hi, I got a strange problem: Using php 4.4.x, I capture the whole output for > a webpage into the output-buffer by using ob_start and ob_get_clean, because > I got to make some replacements in the html-code before sending the page to >

[PHP] output-buffer and memory-issue

2007-10-24 Thread Werner Schneider
Hi, I got a strange problem: Using php 4.4.x, I capture the whole output for a webpage into the output-buffer by using ob_start and ob_get_clean, because I got to make some replacements in the html-code before sending the page to the browser. This worked fine with a small page, but now I got a

Re: [PHP] output the schema

2007-08-07 Thread Richard Lynch
On Fri, August 3, 2007 6:34 am, Richard Heyes wrote: >> I reword my last post. >> >> I want to take the result and generate the field info to the screen >> e.g > > Well, if you're using MySQL you could use either "DESC ;" or > "SHOW CREATE ...". But you can't really generate the schema from a > res

RE: [PHP] Output Buffering and zlib Compression Issue

2007-08-03 Thread Jan Reiter
Right! With zlib compression ob_start() or similar seems to get called before the user script execution. I'm not quite sure why. Anyhow ob_get_level() returns 2 after the ob_start() is called for the first time in the script. You can avoid the error with while (ob_get_level() > 1) { o

RE: [PHP] Output Buffering and zlib Compression Issue

2007-08-03 Thread Jan Reiter
richt- Von: Chris [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 4. August 2007 01:18 An: php-general@lists.php.net Betreff: [PHP] Output Buffering and zlib Compression Issue When I run the following code (PHP 5.2.2, 5.2.3) via Apache (with an htaccess file), I get this error: Notice: ob_end_

[PHP] Output Buffering and zlib Compression Issue

2007-08-03 Thread Chris
When I run the following code (PHP 5.2.2, 5.2.3) via Apache (with an htaccess file), I get this error: Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer zlib output compression. in ... Can anyone explain what's going on? I'm assuming it isn't a bug and I've read the document

RE: [PHP] output the schema

2007-08-03 Thread Uber Wannabe
site's sidebar lists other useful MySQL functions in PHP. -- N/A -Original Message- From: Hulf [mailto:[EMAIL PROTECTED] Sent: Friday, August 03, 2007 6:09 AM To: php-general@lists.php.net Subject: [PHP] output the schema Hi, I reword my last post. I want to take the result and

Re: [PHP] output the schema

2007-08-03 Thread Richard Heyes
I reword my last post. I want to take the result and generate the field info to the screen e.g Well, if you're using MySQL you could use either "DESC ;" or "SHOW CREATE ...". But you can't really generate the schema from a result set. -- Richard Heyes +44 (0)844 801 1072 http://www.websuppo

[PHP] output the schema

2007-08-03 Thread Hulf
Hi, I reword my last post. I want to take the result and generate the field info to the screen e.g id, int(10) name, varchar(30) age, varchar(30). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] output gz compression

2007-04-11 Thread Eric Butera
I am just curious if anybody else has this issue. My platform is OSX 10.4.9 using a custom compiled PHP 4.4.x (4.4.6 & 4.4.7RC1) I've tried using the php.ini setting zlib.output_compression = On and also ob_start("ob_gzhandler"); directly. Each time I call up the page it crashes. On the server

Re: [PHP] Perl & PHP output format mismatching

2006-05-15 Thread Richard Lynch
On Mon, May 15, 2006 4:21 am, [EMAIL PROTECTED] wrote: > I'm currently writing a PHP page, which uses a small Perl script. But > I > encounter an annoying problem with endline character. > > A small example : > > $perl = new Perl(); > $perl->eval('print "toto\ntata"'); Your apostrophes in PHP don'

Re: [PHP] Re: PHP output stream

2006-05-15 Thread Richard Lynch
On Mon, May 15, 2006 8:53 am, nicolas figaro wrote: > [EMAIL PROTECTED] a écrit : >> Thanks for your answer. I already have thought about your solution. >> The problem >> is I have to use the Perl module for PHP. An example : >> >> $perl = new Perl(); >> $perl->require('mct.pl'); >> $perl->MCT_poll

Re: [PHP] Re: PHP output stream

2006-05-15 Thread Stut
[EMAIL PROTECTED] wrote: Thanks for your answer. I already have thought about your solution. The problem is I have to use the Perl module for PHP. An example : $perl = new Perl(); $perl->require('mct.pl'); $perl->MCT_polling(); where MCT_polling() is a function of my script mct.pl. I would find

[PHP] Re: PHP output stream

2006-05-15 Thread mickb
[EMAIL PROTECTED] a �crit : > Thanks for your answer. I already have thought about your solution. The problem > is I have to use the Perl module for PHP. An example : > > $perl = new Perl(); > $perl->require('mct.pl'); > $perl->MCT_polling(); > > where MCT_polling() is a function of my script mct.p

Re: [PHP] Re: PHP output stream

2006-05-15 Thread nicolas figaro
[EMAIL PROTECTED] a écrit : Thanks for your answer. I already have thought about your solution. The problem is I have to use the Perl module for PHP. An example : $perl = new Perl(); $perl->require('mct.pl'); $perl->MCT_polling(); where MCT_polling() is a function of my script mct.pl. I would f

[PHP] Re: PHP output stream

2006-05-15 Thread mickb
Thanks for your answer. I already have thought about your solution. The problem is I have to use the Perl module for PHP. An example : $perl = new Perl(); $perl->require('mct.pl'); $perl->MCT_polling(); where MCT_polling() is a function of my script mct.pl. I would find very strange the fact it's

Re: [PHP] Perl & PHP output format mismatching

2006-05-15 Thread chris smith
On 5/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello, I'm currently writing a PHP page, which uses a small Perl script. But I encounter an annoying problem with endline character. A small example : $perl = new Perl(); $perl->eval('print "toto\ntata"'); In this configuration, the HTM

[PHP] Perl & PHP output format mismatching

2006-05-15 Thread mickb
Hello, I'm currently writing a PHP page, which uses a small Perl script. But I encounter an annoying problem with endline character. A small example : $perl = new Perl(); $perl->eval('print "toto\ntata"'); In this configuration, the HTML page generated sends me : toto tata Of course and you sh

Re: [PHP] output Today's date

2006-03-06 Thread Barry
[EMAIL PROTECTED] wrote: On Sat, Mar 04, 2006 at 07:01:55PM -0700, Paul Goepfert wrote: Hi all, ls there anyway I can set the date to the timezone of the clients timezone? For example, if a person opens the web page at 3/6 12:01 EST and another person opens the same page at 3/5 10:01 MST I wo

RE: [PHP] output Today's date

2006-03-06 Thread gustav
> >> On Sat, Mar 04, 2006 at 07:01:55PM -0700, Paul Goepfert wrote: >> > Hi all, >> > >> > ls there anyway I can set the date to the timezone of the clients >> > timezone? For example, if a person opens the web page at 3/6 12:01 >> > EST and another person opens the same page at 3/5 10:01 MST I wo

RE: [PHP] output Today's date

2006-03-06 Thread Jared Williams
> On Sat, Mar 04, 2006 at 07:01:55PM -0700, Paul Goepfert wrote: > > Hi all, > > > > ls there anyway I can set the date to the timezone of the clients > > timezone? For example, if a person opens the web page at 3/6 12:01 > > EST and another person opens the same page at 3/5 10:01 MST I would

Re: [PHP] output Today's date

2006-03-05 Thread Curt Zirzow
On Sat, Mar 04, 2006 at 07:01:55PM -0700, Paul Goepfert wrote: > Hi all, > > ls there anyway I can set the date to the timezone of the clients > timezone? For example, if a person opens the web page at 3/6 12:01 > EST and another person opens the same page at 3/5 10:01 MST I would > like the date

RE: [PHP] output Today's date

2006-03-05 Thread jblanchard
[snip] ls there anyway I can set the date to the timezone of the clients timezone? For example, if a person opens the web page at 3/6 12:01 EST and another person opens the same page at 3/5 10:01 MST I would like the date to be the above days on the client computers. I know everyone knows this bu

  1   2   3   4   >