couple of reasons:

1) continuity (this is the only interaction of the remainder of the
development with Perl scripts)

2) documentation (saves me explaining PHP AND Perl:DBI in the
emergency documentation should I keel over and die tomorrow and take
the Perl:DBI knowledge with me.  like it or not, not many do the Perl
thing any more)

3) time (rather lengthy bit of code, of which only a portion is
entwined in this task...  reqriting into Perl:DBI for the whole
shebang is doable, but would involve duplicating portions of code, or
ripping code out of a stable set of script... prefer to use the
existing code)

4) reusability (a solution along this line may be used again, and
would make a nice addition to the "solutions" pile should the need
arise again...  as remote as that may be)

If it is not deoable (with relatively little difficulty) then you are
correct, recoding the DBI interaction and the other portions of the
script is the only solution.

thanks

Dave



>-----Original Message-----
>From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 10, 2001 9:10 PM
>To: Dave VanAuken
>Cc: [EMAIL PROTECTED]
>Subject: Re: running php script from withing file to get variables
>
>
>On Thu, 10 May 2001, Dave VanAuken wrote:
>
>> Radius authentication scenario...  radius polls out to a
>perl script
>> which checks against the postgres database for authentic
>> information...
>>
>> we need to do an additional call out to a PHP file
>(sending it args if
>> it cannot read the env[] args) and have its "text" output
>parsed into
>> a variable...
>>
>> this will allow the perl script to determine if the DBI information
>> and the PHP script information create a Success or Failure
>code which
>> can be passed back to the radius program in the form of an
>>      exit $ret;
>> normally I would say just pump it all into the PHP script
>and run it
>> as a shell script, but the radius daemon is waiting for an
>exit code
>> to be passed after the perl script completes, and PHP
>cannot do that,
>> thus the perl DBI solution.
>
>Why not just rewrite the PHP script as Perl?  Is it a web page?
>
>-- Brett
>
http://www.chapelperilous.net/btfwk/
----------------------------------------------------------------------
--
Elevators smell different to midgets.



Reply via email to