RE: [Refdb-users] refdbc and php4
Status: Beta
Brought to you by:
mhoenicka
|
From: <al...@ru...> - 2003-02-13 00:01:21
|
Markus,
Thanks for the diff.
Yes, I only experienced difficulties when running as CGI script. Although I
can't say I really tried it as a non-CGI script.
Later,
Al
Quoting Markus Hoenicka <mar...@mh...>:
> Hi Alan,
>
> please find the diff attached below.
>
> I gather from the example script that you sent that this was also a
> CGI script. I wasn't aware of that, and maybe this makes a difference,
> as I ran my test script from the command line. I'll run some more
> tests and we'll see.
>
> regards,
> Markus
>
> diff -c -r1.44 -r1.45
> *** refdb/refdb/src/refdbc.c 2003/01/06 01:07:11 1.44
> --- refdb/refdb/src/refdbc.c 2003/02/06 22:12:46 1.45
> ***************
> *** 1,7 ****
> /*+++++++++++++++++
> refdbc - the refdb client console application
> ma...@mh... 2-10-00
> ! $Id: refdbc.c,v 1.44 2003/01/06 01:07:11 mhoenicka Exp $
>
> This program is free software; you can redistribute it and/or modify
> it under the terms of the GNU General Public License as published by
> --- 1,7 ----
> /*+++++++++++++++++
> refdbc - the refdb client console application
> ma...@mh... 2-10-00
> ! $Id: refdbc.c,v 1.45 2003/02/06 22:12:46 mhoenicka Exp $
>
> This program is free software; you can redistribute it and/or modify
> it under the terms of the GNU General Public License as published by
> ***************
> *** 207,212 ****
> --- 207,222 ----
> /* test how we were invoked */
> #ifdef REFDB_CGI
> n_cgi = is_cgi(&request_method, &content_length, delayed_cgi_errmsg); /*
> 1 if we are running as a cgi app */
> +
> + /* look for batch command. If found, set n_cgi to 0 because we are
> + apparently invoked as a regular app by a CGI app */
> + for (i = 0; i < argc; i++) {
> + if (argv[i][0] == '-' && argv[i][1] == 'C') {
> + n_cgi = 0;
> + break;
> + }
> + }
> +
> #endif
>
> /* redirect error messages correctly */
>
> --
> Markus Hoenicka
> mar...@ca...
> (Spam-protected email: replace the quadrupeds with "mhoenicka")
> http://www.mhoenicka.de
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Refdb-users mailing list
> Ref...@li...
> https://lists.sourceforge.net/lists/listinfo/refdb-users
>
>
-------------------------------------------------
This mail sent by http://webmail.rushmore.com
|