[PHP-WIN] Re: flushing output to the browser whilst the script does somethinguseful

2002-05-09 Thread Steve Yates
"Mr. Adam Allen." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Currently, html only gets displayed by the browser once the complete > script has finished. What I'm looking to do, is flush the HTML out How about flush() ? :) http://www.php.net/manual/en

Re: [PHP-WIN] register_globals and php 4.2

2002-05-09 Thread Steve Yates
"Court Shrock" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Replace all references of "$pagetype" with "$_GET['pagetype']" (without the > doube-quotes, of course) or have the line "$pagetype = $_GET['pagetype']" at > the beginning of your file. Repeat this same idea with your

[PHP-WIN] XML parsing

2002-05-09 Thread Carl Lerche
Hello, I have a question regarding XML parsing. Ok, I have an XML file that I'm using to contain the data for an article. Within it, I have an tag, where everything within those tags are just going to be html. However!! If I don't close a tag within there, let's say the parser is going to giv

RE: [PHP-WIN] register_globals and php 4.2

2002-05-09 Thread Robin Bolton
Or, you can simply use: @$var_name = $_GET['var_name'] to suppress error messages. -Original Message- From: Shrock, Court [mailto:[EMAIL PROTECTED]] Sent: May 9, 2002 17:51 To: Afan Pasalic; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] register_globals and php 4.2 You will get that error b

RE: [PHP-WIN] register_globals and php 4.2

2002-05-09 Thread Shrock, Court
Oops.replace the "ALL" with "E_ALL" and "NOTICE" with "E_NOTICE" > -Original Message- > From: Shrock, Court [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 09, 2002 4:51 PM > To: Afan Pasalic; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] register_globals and php 4.2 > > > You will ge

RE: [PHP-WIN] register_globals and php 4.2

2002-05-09 Thread Shrock, Court
You will get that error because you did not reach the page via the url "index.php?var_name=tada", therefore, "var_name" is not defined in the _GET superglobal array so you get a warning because of your error_reporting setting. The warning that was printed is actually a notice configured within yo

Fw: [PHP-WIN] register_globals and php 4.2

2002-05-09 Thread Afan Pasalic
I have the same problem but putting $var_name = $_GET['var_name'] didn't solve the problem. I put it on the top of the page (e.g. line no. 2) and I'm getting error: PHP Warning: Undefined index: var_name in F:\bhdanas.com\index.php on line 2 Any idea? Afan - Original Message - From:

Re: [PHP-WIN] Data output

2002-05-09 Thread Olivier Hubert
I think this is normal PHP behavior. The $result variable is considered an "array" by the MySQL functions, so every time you call mysql_fetch_, you remove an element from the "array" (I don't think it's really an array but it's the best comparison I could find). My solution would be to create

Re: [PHP-WIN] Data output

2002-05-09 Thread Piotr Pluciennik
Hi Matt, in your code unfortunately it's not clear how you are outputting data from an array, so I'm not sure... but try reset($rows) function - it will set internal pointer of array to first element... Consult manual for array functions, specially for reset(). HTH, let me know Piotr --- Matt

[PHP-WIN] Data output

2002-05-09 Thread Matt Babineau
After I output data from a query with a for() loop, It seems like I cannot reuse the array from the query any more. Do I have to requery the database for the same info so that I can add up the database columns? OUTPUT DATA HERE After this has run, when I try to run ano

RE: [PHP-WIN] flushing output to the browser whilst the script does something useful

2002-05-09 Thread Scott Hurring
If this doesn't work for you, try printing out all your HTML, spawn the "long" proc. into the background and then exit. Then, on the HTML you outputted, use a META REFRESH or Javascript refresh (or just putting a link at the bottom for the user to click on), so that the user can then see the outp

RE: [PHP-WIN] how do i split text on multi linez .... ????

2002-05-09 Thread Scott Hurring
Yes. If you're outputting to a browser, the browser ignores linefeeds. you *need* some kind of HTML to split up lines. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Mike Flynn [mailto:[EMAIL PRO

RE: [PHP-WIN] how do i display errors

2002-05-09 Thread Scott Hurring
Look for trace_errors in php.ini and it'll tell you about itself. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Mauricio [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 08, 2002 5:03 PM > To: [E

RE: [PHP-WIN] Simple function question

2002-05-09 Thread Scott Hurring
// Setup the function like this function runvar ($var1) { ... } // Call it like this runvar($var1); --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Matt Babineau [mailto:[EMAIL PROTECTED]] > Sent:

Re: [PHP-WIN] flushing output to the browser whilst the script does something useful

2002-05-09 Thread Olivier Hubert
You might want to look at the flush() function which seem to do exactly what you need. http://www.php.net/manual/en/function.flush.php However please note that your web server might still buffer the output. You would then have to look at the server level to solve your problem. Hope this helps

[PHP-WIN] flushing output to the browser whilst the script does somethinguseful

2002-05-09 Thread Mr. Adam ALLEN.
Wasn't sure on what the best way of describing it in a few words.. I have a few php scripts which outputs a good page worth of html, then there is a long delay while something useful is done by the script. Currently, html only gets displayed by the browser once the complete script has finished.

RE: [PHP-WIN] register_globals and php 4.2

2002-05-09 Thread brother
> -Original Message- > From: Shrock, Court [mailto:[EMAIL PROTECTED]] > > Replace all references of "$pagetype" with > "$_GET['pagetype']" (without the > doube-quotes, of course) or have the line "$pagetype = > $_GET['pagetype']" at > the beginning of your file. Repeat this same idea

Re: [PHP-WIN] Simple function question

2002-05-09 Thread Bradley Miller
At 03:02 PM 5/9/02 -0400, Matt Babineau wrote: >Ok, I just read a section in a book about functions. In my cost I have >some variables set: > >$var1 = "1"; > >And I have a function I wrote that needs to utilize that variable. > >function runvar(){ >query database looking for $var1; >

Re: [PHP-WIN] Simple function question

2002-05-09 Thread Scott Carr
Use $GLOBALS['var1'] That will get the variable from the correct scope. -- Scott Carr OpenOffice.org Whiteboard-Doc Maintainer http://whiteboard.openoffice.org/doc/ Quoting Matt Babineau <[EMAIL PROTECTED]>: > Ok, I just read a section in a book about functions. In my cost I have > some varia

php-windows Digest 9 May 2002 19:05:52 -0000 Issue 1136

2002-05-09 Thread php-windows-digest-help
php-windows Digest 9 May 2002 19:05:52 - Issue 1136 Topics (messages 13642 through 13659): Re: php with ADO 13642 by: Christoph Grottolo 13645 by: Scott Carr 13646 by: Frank M. Kromann 13647 by: Asendorf, John 13648 by: Scott Carr 13650 by: Sc

[PHP-WIN] Simple function question

2002-05-09 Thread Matt Babineau
Ok, I just read a section in a book about functions. In my cost I have some variables set: $var1 = "1"; And I have a function I wrote that needs to utilize that variable. function runvar(){ query database looking for $var1; } I get horrible errors though. In the book it talked

Re: [PHP-WIN] php with ADO

2002-05-09 Thread Roberto Valverde
Thanks to all for your help, I will have a try, to see what happends. Rob "Scott Carr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Sorry, didn't realize ADOdb used MS ADO as well. Let me remove my foot from my > mouth, please. ;-) > -- > Scott Carr > OpenOffice.org > Whitebo

Re: [PHP-WIN] how do i split text on multi linez .... ????

2002-05-09 Thread Mike Flynn
Better yet, use the nl2br function to convert newline characters (\n) into tags.. see: http://www.php.net/manual/en/function.nl2br.php At 05:56 PM 5/9/02 +0100, toby z wrote: >guyz ... im stuck yet again . > >this time it is . > >im taking input from user a whole article and i