RE: RE: [PHP-DB] exit code generation, php shell script/standalone

2001-05-11 Thread Dave VanAuken
] [mailto:[EMAIL PROTECTED]]On Behalf Of Russ >Michell >Sent: Friday, May 11, 2001 4:25 AM >To: Dave VanAuken >Cc: PHP-DB >Subject: Re: RE: [PHP-DB] exit code generation, php shell >script/standalone > > >Could you not use : > >or(header("Location: local/or/absolute/pa

Re: RE: [PHP-DB] exit code generation, php shell script/standalone

2001-05-11 Thread Russ Michell
iable prior to exiting (ie printing it to the screen) rather than > passing it back > > Dave > > > >-Original Message- > >From: Miles Thompson [mailto:[EMAIL PROTECTED]] > >Sent: Thursday, May 10, 2001 4:16 PM > >To: Dave VanAuken > >Subject: RE:

RE: [PHP-DB] exit code generation, php shell script/standalone

2001-05-10 Thread Dave VanAuken
ROTECTED]] >Sent: Thursday, May 10, 2001 4:16 PM >To: Dave VanAuken >Subject: RE: [PHP-DB] exit code generation, php shell >script/standalone > > >Dave, > >I'm just free associating here, so these suggestions may be >worthless: > >If you are calling the PHP scr

RE: [PHP-DB] exit code generation, php shell script/standalone

2001-05-10 Thread Dave VanAuken
did try it, no go. Tried a number of permutations, but it doesn't seem to want to actually return the exit code... just prints it to the screen (in terminal mode) which is pretty and all, but not what I need :) just wondering is a solution exists and i just can't see the forest for the trees.

Re: [PHP-DB] exit code generation, php shell script/standalone

2001-05-10 Thread Miles Thompson
Dave, You can return a value from a function ... function dosomething( para1, para2 ) { code here which depending on success or failure sets $reflag to 0 or 1 return $retflag; } So now the question is "Can we return a value from a script?" Hell, I don't know, why not just try it? M