Re: [PHP] exit and ob_*

2007-10-12 Thread Philip Thompson
(*francois at bonzon dot com) *mentions this on the PHP exit page http://www.php.net/exit, but I'm still not sure why it happens. Thanks in advance, ~Philip -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power

Re: [PHP] exit and ob_*

2007-10-12 Thread Andrew Ballard
On 10/12/07, Philip Thompson [EMAIL PROTECTED] wrote: I suppose this isn't a big deal during production, but during testing it's really frustrating. Does anyone have any suggestions as to why 'exit' is functioning (no pun intended) this way? Note: I do want what's currently in the buffer to be

Re: [PHP] exit and ob_*

2007-10-12 Thread Robert Cummings
On Fri, 2007-10-12 at 14:30 -0500, Philip Thompson wrote: On 10/12/07, Robert Cummings [EMAIL PROTECTED] wrote: Have you checked your error log to see if there an error being generated that you can't see? Cheers, Rob. Yes, no unusual errors. The thing is... this wasn't an issue

Re: [PHP] exit and ob_*

2007-10-12 Thread Philip Thompson
On 10/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-10-12 at 14:30 -0500, Philip Thompson wrote: On 10/12/07, Robert Cummings [EMAIL PROTECTED] wrote: Have you checked your error log to see if there an error being generated that you can't see? Cheers, Rob.

Re: [PHP] exit and ob_*

2007-10-12 Thread Robert Cummings
any suggestions as to why 'exit' is functioning (no pun intended) this way? Note: I do want what's currently in the buffer to be sent to the browser, so I don't want to have to call ob_clean. Any thoughts? Another person (*francois at bonzon dot com) *mentions this on the PHP exit page http

[PHP] exit and ob_*

2007-10-12 Thread Philip Thompson
thoughts? Another person (*francois at bonzon dot com) *mentions this on the PHP exit page http://www.php.net/exit, but I'm still not sure why it happens. Thanks in advance, ~Philip

Re: [PHP] exit and ob_*

2007-10-12 Thread Philip Thompson
On 10/12/07, Andrew Ballard [EMAIL PROTECTED] wrote: On 10/12/07, Philip Thompson [EMAIL PROTECTED] wrote: I suppose this isn't a big deal during production, but during testing it's really frustrating. Does anyone have any suggestions as to why 'exit' is functioning (no pun intended) this

[PHP] exit() function question

2002-09-03 Thread Renato Lins
Why exit() funtion always exit with 255 value instead of the passed value, in php 4.2.2, even when I compile with --enable-cli. Check the code bellow, to see # cat t3.php #!/usr/src/php-4.2.2/php ?php echo Version: ,phpversion(),\n; exit(1); ? # ./t3.php ; echo last run exit value:$? Version:

Re: [PHP] exit() function question

2002-09-03 Thread Tom Rogers
Hi, Wednesday, September 4, 2002, 1:30:49 AM, you wrote: RL Why exit() funtion always exit with 255 value instead of the passed RL value, in php 4.2.2, even when I compile with --enable-cli. RL Check the code bellow, to see RL # cat t3.php RL #!/usr/src/php-4.2.2/php RL ?php RL echo Version:

[PHP] Exit script early

2002-07-16 Thread Michael Zornek
Ok, So I'm creating a details.php page where I'm expecting the url to be something like: /details.php?id=12345 Thus in my php I have the following: if (!isset($id)) { // if no id exsits // Create a page saying ID not found, goto index writeHTMLTag(); writeHeader(Error, never);

Re: [PHP] Exit script early

2002-07-16 Thread Adam Voigt
exit; =) Adam Voigt [EMAIL PROTECTED] On Tue, 2002-07-16 at 13:08, Michael Zornek wrote: Ok, So I'm creating a details.php page where I'm expecting the url to be something like: /details.php?id=12345 Thus in my php I have the following: if (!isset($id)) { // if no id exsits

Re: [PHP] Exit script early

2002-07-16 Thread Chris Boget
So I'm creating a details.php page where I'm expecting the url to be something like: My question is what command can I use to end the script [inside the top part of that if statement]? Ironically enough, exit(); Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Exit script early

2002-07-16 Thread Martin Clifford
RTFM re: Exit and Continue. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Michael Zornek [EMAIL PROTECTED] 07/16/02 01:08PM Ok, So I'm creating a details.php page where I'm expecting the url to be something like:

Re: [PHP] Exit script early

2002-07-16 Thread 1LT John W. Holmes
- From: Michael Zornek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 1:08 PM Subject: [PHP] Exit script early Ok, So I'm creating a details.php page where I'm expecting the url to be something like: /details.php?id=12345 Thus in my php I have the following

[PHP] Exit();

2002-04-04 Thread Mauricio Cuenca
Hello, I'm using recursive functions and call a function from inside another one. The problem is that when I call the Exit(); function the whole program is aborted. How can I quit just the current function, not the whole program ? example Function One() { If (!$var) { Exit(); } } Function

Re: [PHP] Exit();

2002-04-04 Thread Ben Edwards
return maybe. At 16:24 04/04/2002, Mauricio Cuenca wrote: Hello, I'm using recursive functions and call a function from inside another one. The problem is that when I call the Exit(); function the whole program is aborted. How can I quit just the current function, not the whole program ?

RE: [PHP] Exit();

2002-04-04 Thread Darren Gamble
) 781-4948 -Original Message- From: Mauricio Cuenca [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Exit(); Hello, I'm using recursive functions and call a function from inside another one. The problem is that when I call the Exit

Re: [PHP] exit status

2002-03-04 Thread David Apthorpe
Thanks. Is there any way to work around this at present? David Lars Torben Wilson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]; On Sun, 2002-03-03 at 04:16, David Apthorpe wrote: I'm using PHP on the command line. Is there any way to exit, whilst setting the exit status,

[PHP] exit status

2002-03-03 Thread David Apthorpe
I'm using PHP on the command line Is there any way to exit, whilst setting the exit status, without having it print out? For example, exit(2) will print 2 Thanks in advance, David Apthorpe -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

Re: [PHP] exit status

2002-03-03 Thread Lars Torben Wilson
On Sun, 2002-03-03 at 04:16, David Apthorpe wrote: I'm using PHP on the command line. Is there any way to exit, whilst setting the exit status, without having it print out? For example, exit(2) will print 2. Thanks in advance, David Apthorpe This will be in PHP 4.2.0. -- Torben

[PHP] exit() summary

2001-12-19 Thread exit
Hello, As Jani wrote in an earlier e-mail, we have a problem with exit(). If you pass it an integer, like exit(1), it will set the exit status to 1, and _print_ 1 to the output stream. Ok, that was the problem, this are the solutions: 1. We fix exit, so that it does not print the value if it

[PHP] exit in function

2001-05-18 Thread Jakob Kruse
Hi I use PHP 4.0.5 and Apache 1.3.19 on Windows 2000, with PHP running as an Apache module. If I use the exit construct from within a function Apache crashes. I made a small test-page like this: ?php function foo() { echo foo1; exit; echo foo2; } foo(); echo bar; ? I would expect it to

RE: [PHP] exit in function

2001-05-18 Thread PHPBeginner.com
[mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 11:56 PM To: [EMAIL PROTECTED] Subject: [PHP] exit in function Hi I use PHP 4.0.5 and Apache 1.3.19 on Windows 2000, with PHP running as an Apache module. If I use the exit construct from within a function Apache crashes. I made a small test-page

[PHP] exit code generation, php shell script/standalone

2001-05-10 Thread Dave VanAuken
to tie in web based scripts and database updates with some server side maintenance and authentication issues, we need to have a PHP script be called from another program. The program expects a return or exit value to be transmitted back on completion or termination of the script. 0 indicating

[PHP] exit signal Floating point exception(8)

2001-02-18 Thread Charles Peters
Geetings and Salutations- I am experiencing a similar problem, but only on two similarly configured FreeBSD 4.0-Stable servers. Here are the details... We are running php-4.0.1p12, and it is built with -imap=/usr/local specified in the log files. In /var/log/messages, we have the following

Re: [PHP] exit signal Floating point exception(8)

2001-02-18 Thread Rasmus Lerdorf
Upgrade to the latest tarball from snaps.php.net On Sun, 18 Feb 2001, Charles Peters wrote: Geetings and Salutations- I am experiencing a similar problem, but only on two similarly configured FreeBSD 4.0-Stable servers. Here are the details... We are running php-4.0.1p12, and it is

Re: [PHP] exit signal Floating point exception(8)

2001-02-18 Thread Charles Peters
Thanks Rasmus, I appreciate your quick response. I would imagine that there was a know issue involving this bug and the version of php that I was using? Charles --- Rasmus Lerdorf [EMAIL PROTECTED] wrote: Upgrade to the latest tarball from snaps.php.net On Sun, 18 Feb 2001, Charles

Re: [PHP] exit signal Floating point exception(8)

2001-02-18 Thread Rasmus Lerdorf
Yes On Sun, 18 Feb 2001, Charles Peters wrote: Thanks Rasmus, I appreciate your quick response. I would imagine that there was a know issue involving this bug and the version of php that I was using? Charles --- Rasmus Lerdorf [EMAIL PROTECTED] wrote: Upgrade to the latest tarball

RE: [PHP] Exit Function

2001-02-01 Thread Boget, Chris
What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } function FooBar() { if ($foo = $bar) return 0; } ## otherwise execute the rest of this function } Chris

Re: [PHP] Exit Function

2001-01-31 Thread Josh G
day, February 01, 2001 9:39 AM Subject: Re: [PHP] Exit Function On Wed, 31 Jan 2001, Karl J. Stubsjoen wrote: What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function

Re: [PHP] Exit Function

2001-01-31 Thread Steve Smith
On Wed, 31 Jan 2001, Karl J. Stubsjoen wrote: What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } Use "return". If you want your function to return a

[PHP] Exit Function

2001-01-31 Thread Karl J. Stubsjoen
What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Exit Function

2001-01-31 Thread Chris Lee
function some($foo, $bar) { if ($foo != $bar) return ; ... } -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Karl J. Stubsjoen"" [EMAIL PROTECTED] wrote in message 004701c08bd5$eecbc340$0afc020a@kstubsjoen">news:004701c08bd5$eecbc340$0afc020a@kstubsjoen... What is

Re: [PHP] Exit Function

2001-01-31 Thread Martin A. Marques
El Mi 31 Ene 2001 19:34, Karl J. Stubsjoen escribi: What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } return is what you want. -- System Administration: It's a