(*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
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
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
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.
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
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
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
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:
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:
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);
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
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,
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:
-
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
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
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 ?
) 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
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,
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
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
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
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
[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
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
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
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
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
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
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
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
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
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,
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
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
34 matches
Mail list logo