RE: running php script from withing file to get variables

2001-05-11 Thread Dave VanAuken

Let me clarify (at the risk of going up in flames) prior to ending the
thread.

The client in question has 3 "developers" who toute thier knowledge of
ASP, and are esentially using Ftontpage and other MS based apps to
deliver thier web based solution.  For some reason they have an
inkling of PHP, and the customer was convinced to place the site on a
FreeBSD/Apache platform.  The PHP was enough for them to chew on
without going into the bowels of shell and Perl programming.  They
wish to have thier "developers" manage the solution after the fact,
and as such have to keep them in mind when providing the solution.

I would assume from hearing these individuals talk that what is being
taught these days is the wonders of ASP, Flash and other "glitz and
glamour" which they assume makes a good developer...  perhaps a web
developer, but IMO that term is being applied to every idiot with a
copy of Frontpage.

My place is to provide the solution the customer wants, and bill
accordingly, not preach to them on the quality of thier staff or thier
hiring process.

The statement did require clarification, I am not saying Perl is dead
(no more than I am saying shell scripting is dead), more in referring
to the focus of new individuals into the field.

In closure, I redesigned the entire module using Perl:DBI and
commented the crap out of it.  Anyone with a good understanding of
english can reasonably hack at it to get the desired results.

Cheers.

Dave

>-Original Message-
>From: Sterin, Ilya [mailto:[EMAIL PROTECTED]]
>Sent: Friday, May 11, 2001 11:27 AM
>To: 'Curt Russell Crandall '; 'Dave VanAuken '
>Cc: '[EMAIL PROTECTED] '
>Subject: RE: running php script from withing file to get variables
>
>
>>like it or not, not many do the Perl thing any more
>
>Who are you refering to by **many**.  You have statistics?
>Perl powers more
>web sites/servers than any other language.  You just don't
>hear about it as
>much since it's an open source technology and they don't
>have the money,
>will, and reason to advertise it in commercial magazines and
>tv commercials.
>I can't disclose, but I work for one of the "Big Three",
>(for those who
>don't know Ford/GM/Chrysler) and over 90 percent of all intranet
>applications (and there are thousands) and internet
>applications are written
>in Perl.  Java does not even account for 1% of all
>development.  See way
>more .cgi scripts all over the web then .php3|4, .jsp, .asp, etc...
>
>Ilya Sterin
>
>
>-Original Message-
>From: Curt Russell Crandall
>To: Dave VanAuken
>Cc: [EMAIL PROTECTED]
>Sent: 05/11/2001 8:53 AM
>Subject: RE: running php script from withing file to get variables
>
>>
>> 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)
>>
>
>Huh?  Are you just talking about at your own shop... I know very few
>people who write PHP any longer and far many more who still
>"do the Perl
>thing", personally.
>I totally agree with Brett, I would just write it all in
>Perl and forget
>about mixing the 2 languages... unless of course someone over you
>dictates
>something else.
>
>




RE: running php script from withing file to get variables

2001-05-11 Thread Sterin, Ilya

>like it or not, not many do the Perl thing any more

Who are you refering to by **many**.  You have statistics?  Perl powers more
web sites/servers than any other language.  You just don't hear about it as
much since it's an open source technology and they don't have the money,
will, and reason to advertise it in commercial magazines and tv commercials.
I can't disclose, but I work for one of the "Big Three", (for those who
don't know Ford/GM/Chrysler) and over 90 percent of all intranet
applications (and there are thousands) and internet applications are written
in Perl.  Java does not even account for 1% of all development.  See way
more .cgi scripts all over the web then .php3|4, .jsp, .asp, etc...

Ilya Sterin


-Original Message-
From: Curt Russell Crandall
To: Dave VanAuken
Cc: [EMAIL PROTECTED]
Sent: 05/11/2001 8:53 AM
Subject: RE: running php script from withing file to get variables

> 
> 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)
> 

Huh?  Are you just talking about at your own shop... I know very few
people who write PHP any longer and far many more who still "do the Perl
thing", personally.
I totally agree with Brett, I would just write it all in Perl and forget
about mixing the 2 languages... unless of course someone over you
dictates
something else.



RE: running php script from withing file to get variables

2001-05-11 Thread Curt Russell Crandall

> 
> 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)
> 

Huh?  Are you just talking about at your own shop... I know very few
people who write PHP any longer and far many more who still "do the Perl
thing", personally.
I totally agree with Brett, I would just write it all in Perl and forget
about mixing the 2 languages... unless of course someone over you dictates
something else.




RE: running php script from withing file to get variables

2001-05-10 Thread Dave VanAuken

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.






Re: running php script from withing file to get variables

2001-05-10 Thread Brett W. McCoy

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.