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 in
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
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?
> > >
>
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
gt; 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
> pag
// 'hi' DOES display
> > ...
> >
> > [/examples]
> >
> > 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
o 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://www.php.net/exit>, but I'm still not sure why it happens.
Thanks in advance,
~Philip
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> echo "Version: ",
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
# ./t3.php ; echo "last run exit value:"$?
Version: 4.2.2
last run exit value:255
--
PHP Genera
ssage -
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:
>
&
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:
/
> 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
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
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")
) 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
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 ?
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 ?
Function One()
{
If (!$var) { Exit(); }
}
Function Two();
{
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 st
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.
--
T
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://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
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 is
akob Kruse [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
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:
I would expect it to print "foo1" and then nothing more. But instead Apache
crashes. Why?
Regards
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 su
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 l
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 P
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 i
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 t
> 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
}
Chr
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:
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
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, e-m
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 retu
L PROTECTED]>
Sent: Thursday, 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 = $ba
34 matches
Mail list logo