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

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

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

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

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 >

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

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? >

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

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 a CLI scr

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 included file) in a CLI > script, >

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 >

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
Hi! I'm not quite sure what you are trying to do ... Why do you use output buffering in your code, when you turn it off in the htaccess directive?? php_flag output_buffering Off The code worked for me. But I tested it without your htaccess settings ... Jan -Ursprüngliche Nachricht- V

RE: [PHP] output the schema

2007-08-03 Thread Uber Wannabe
You would probably want to use the combination of the MySQL query "SHOW COLUMNS FROM " and the PHP function mysql_field_type(). An example would be: ) or die(); //Dummy variable for incrementing current field $count = 0; while($row = mysql_fetch_row($result)

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

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] 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

Re: [PHP] output Today's date

2006-03-05 Thread tedd
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 to be the above days on the client computers. I know everyone knows this

Re: [PHP] Output files encoding

2005-10-24 Thread Richard Lynch
On Mon, October 24, 2005 9:16 am, Yannick Warnier wrote: > Le lundi 24 octobre 2005 à 14:37 +0100, Yannick Warnier a écrit : >> Hi guys, >> >> For a reason that I don't really understand, my PHP install outputs >> file >> in UTF-8 by default. >> >> I would like to output files in ISO-8859-1 in cert

Re: [PHP] Output files encoding

2005-10-24 Thread Yannick Warnier
Le lundi 24 octobre 2005 à 14:37 +0100, Yannick Warnier a écrit : > Hi guys, > > For a reason that I don't really understand, my PHP install outputs file > in UTF-8 by default. > > I would like to output files in ISO-8859-1 in certain cases. How do I do > that? > > I have tried changing default_

Re: [PHP] Output of html without using functions?

2005-09-15 Thread Gustav Wiberg
day, September 15, 2005 12:59 AM Subject: Re: [PHP] Output of html without using functions? http://php.net')); ?> On Wed, September 14, 2005 3:31 am, Gustav Wiberg wrote: Hi there! Ok.. Thanx! Yes, I must be able to get info from his site, BUT i can't install anything (Not

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Gustav Wiberg
Hi there! Thanx! I think this will solve the problem... /G http://www.varupiraten.se/ - Original Message - From: "Jesper Gran" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Wednesday, September 14, 2005

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Jesper Gran
I have tried a class called "HTTP protocol client" from phpclasses to retrive sourcecode from other websites. You should be able to used it to get the output from your remote script. And it works on b-one. http://www.phpclasses.org/browse/package/3.html /Jepser -- PHP General Mailing List (ht

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Gustav Wiberg
ge Pitcher" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, September 14, 2005 10:08 AM Subject: RE: [PHP] Output of html without using functions? Gustav, If I write a function in PHP. Main question: Would the partner be able to get the

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Gustav Wiberg
- Original Message - From: "George Pitcher" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, September 14, 2005 9:47 AM Subject: RE: [PHP] Output of html without using functions? Gustav, For true simplicity (platform ind

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Jochem Maas
Gustav Wiberg wrote: Hi there! Look at the following code code1.php code2.php //Here I want to get the output of code1.php without using functions. Is it possible? // //Something like $test = require("http:///mobil_info.php"); but instead of returning 1 at success I want to return the

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: //Something like $test = require("http:///mobil_info.php"); but instead of returning 1 at success I want to return the random value... $test = file_get_contents("http:///mobil_info.php"); assuming allow_url_fopen is on, otherwise look at the CURL functions or use raw sock

Re: [PHP] Output of html without using functions?

2005-09-14 Thread Shafiq Rehman
Hi, You can use your code1.php as and then you can get the value as $returnedData = require("code1.php"); On 9/14/05, Gustav Wiberg <[EMAIL PROTECTED]> wrote: > > Hi there! > > Look at the following code > > > code1.php > > echo rand(1,1); > ?> > > > code2.php > > //Here I want

Re: [PHP] output buffering / output compression

2005-06-11 Thread Richard Lynch
On Thu, June 9, 2005 12:22 am, Paul Birnstihl said: > I have recently set up a machine with PHP with both buffering and > compression turned on. Some of the pages being served include up to 3MB > of HTML. > > Can someone explain the benefit(s) of setting these ini directives to > values (ie. larger

Re: [PHP] Output buffering - saving + echoing

2004-12-15 Thread Richard Lynch
Lorderon wrote: > What I want to do is "catch" the output buffer, but do not delay the > buffer > to be sent. How is it done? I see three options here: #1 Call ob_start/ob_get_contents/ob_flush and repeat that a *LOT* within your script, so that you are buffering only a few lines of text at any g

Re: [PHP] Output buffering - saving + echoing

2004-12-15 Thread Lorderon
Hi, "Brent Baisley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Not exactly sure what your question is. You want to catch the buffer, > but don't delay the buffer to be sent??? > If your question is that you want to hold the contents of the buffer > and send it only when you are

Re: [PHP] Output buffering - saving + echoing

2004-12-15 Thread Lorderon
Hi, "Brent Baisley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Not exactly sure what your question is. You want to catch the buffer, > but don't delay the buffer to be sent??? > If your question is that you want to hold the contents of the buffer > and send it only when you are

Re: [PHP] Output buffering - saving + echoing

2004-12-15 Thread Brent Baisley
Not exactly sure what your question is. You want to catch the buffer, but don't delay the buffer to be sent??? If your question is that you want to hold the contents of the buffer and send it only when you are ready, don't use ob_end_flush, use ob_end_clean. The buffer is cleared without sending

Re: [PHP] output htmkl file as text

2004-10-27 Thread Curt Zirzow
* Thus wrote Jerry Swanson: > I want to output html file on the screen like text not like html file. > I want a program to read html file and output source code to the screen. > > Any ideas how to fake browser, so browser will print html tags on the screen? By default php will send a header: C

Re: [PHP] output htmkl file as text

2004-10-27 Thread Greg Donald
On Wed, 27 Oct 2004 13:41:20 -0400, Jerry Swanson <[EMAIL PROTECTED]> wrote: > I want to output html file on the screen like text not like html file. > I want a program to read html file and output source code to the screen. > > Any ideas how to fake browser, so browser will print html tags on the

Re: [PHP] output htmkl file as text

2004-10-27 Thread John Nichel
Jerry Swanson wrote: I want to output html file on the screen like text not like html file. I want a program to read html file and output source code to the screen. Any ideas how to fake browser, so browser will print html tags on the screen? ASCII -- John C. Nichel ÜberGeek KegWorks.com 716.856.

  1   2   >