473,320 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Can you properly integrate PHP and Perl?

I'm well familiar with both PHP and Perl

Let's say you've written, or have access to, a nice set of PHP modules or
functions which allow you to write general applications very quickly.
(As an example, to quickly bring up general and uniform web pages which
can be used to quickly enter data into a back-end database).

Now you switch companies and their environment uses entirely Perl.
Obviously, people there have been writing their own Perl modules there
for years which are used to interface to the various databases and
other systems they have there.

Is there anything that allows one to 'mix' Perl and PHP in the same
subroutines, etc, and thus allowing one to use whichever is more
appropriate for each subtask?

Something perhaps like
<?php
$phpvariable=<?perl &perlsubroutine('a',34) ?> ;
?>
or even vice versa I guess.

Heh :-)
I'm almost certain that I'm being totally delusional here, but I thought
I'd ask - you never know, some third-party product might exist to do
this.

I guess I'm going to have to do it the hard way, and try to, say, have
Perl as the front-end, and have it use system() or `` (backticks) to
try to call any of my back-end PHP programs as necessary?
Jul 19 '05 #1
1 1846
sa****@a-nospam-ar.com.au (Sarah E. Green) wrote
in message news:<3f********@nexus.comcen.com.au>...

Is there anything that allows one to 'mix' Perl and PHP in the same
subroutines, etc, and thus allowing one to use whichever is more
appropriate for each subtask? .... I guess I'm going to have to do it the hard way, and try to, say, have
Perl as the front-end, and have it use system() or `` (backticks) to
try to call any of my back-end PHP programs as necessary?


For things that do not require exchanging data between two groups
of scripts, this may actually work quite well. If you do need the
exchange, you might want to write a SOAP-based interface between
the two groups, so that they can call each other at will. You will
end up with two Web services, one with a Perl-based provider, which
PHP scripts will call, and the other with a PHP-based provider, which
Perl scripts will call. There may be a performance penalty though...

Cheers,
NC
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Stuart Gerchick | last post by:
When will PHP properly support UNICODE
5
by: johnleemk | last post by:
I download the source for W3C's validator from http://validator.w3.org/source/ to validate pages on my own server. I commented a block of code that checks for non-public hosts so the validator...
0
by: Rob R. Ainscough | last post by:
I'm looking for some Knowledge base tools that would integrate into VS.2003 and be flexible. My developers would us it to house important tips, tricks, and other information -- needs to have...
3
by: Tom Kaz | last post by:
I need to compute integral of some array function, something like: from scipy import * f = lambda x: array( ) integrate.quad(f, 0, 1) Unfortunately integrate.quad requires Float type.
5
by: Marcelo | last post by:
How can I integrate c++ programs inside a GUI java interface? I would like to get the results from a c++ program and integrate them inside a java GUI. thanks Marcelo
1
by: R. de Laat | last post by:
Hi there, I recently started writing perl and i like it more and more. Syntax is something you can easily learn from a book and then just do it. You will get better as you go. But i seem to...
1
by: Johnny Meredith | last post by:
Dear All, I have an Access database that tracks the progress of income tax audits. When the taxing authorities make a change (an "Adjustment"), I record the pertinent information in the...
0
by: P McGinness | last post by:
Basically, I've a JS function called ValidateForm(), which returns true or false and controls if the form submits. When I integrate this with .NET validators, the .NET always adds it's own call...
13
by: chadsspameateremail | last post by:
I might have found a problem with how preg_match works though I'm not sure. Lets say you have a regular expression that you want to match a string of numbers. You might write the code like this:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.