Perl / PHP in harmony & synergy?
| From: | Monte J. Shaffer | Date: | Mon, 01 Mar 2004 17:49:16 +0000 |
| Subject: | Perl / PHP in harmony & synergy? | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-23686@lists.php.net to get a copy of this message | ||
Hello all:
I have appreciated the ideal for standards associated with creating the PHP
group. I am a PHP developer who gets tired of reworking code, and figuring
out unstructure logic.
I have my own servers, and can configure them to do what I want. I do have
some questions regarding PHP in general and its relation to PERL. A
solution to this problem, I foresee would be very helpful.
I know I may be walking on sensitive ground because everyone claims their
solution is best. I don't want to have that discussion, my focus is on
using quality/documented code from wherever I can.
Right now, as far as I know, I can access PERL code within PHP by assuring I
have a CLI in PERL (.pl / .cgi) and use an exec() option in PHP.
Just imagine if a wrapper where created to access the PERL class::function
parameters from within PHP.
CONCEPT
ini.set perl_dir /usr/bin/perl
------------------------------
perl_include("Net::DNS");
$resolver = Net::DNS::Resolver->new;
$query = $res->search("host.example.com");
If this were possible, a lot of the PHP group goals what be about
collaborating with PERL interfacing, not just porting code.
If someone has spent 6 years developing/refining/debugging this code, why
can't I just grab the results a function would return within PHP.
PHP/PERL together is stronger than they are separately. Harmony & Synergy.
Is this taboo to consider?
PHP has developed wrappers for ecommerce gateways, cURL interface, etc.
Isn't the ultimate gateway in the open source community a true "PERL"
gateway?
Regards,
monte
{x:
Monte Shaffer
mshaffer@mshaffer.com