473,703 Members | 5,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 1857
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...

Jul 19 '05 #2

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

Similar topics

by: Stuart Gerchick | last post by:
When will PHP properly support UNICODE
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 would let me check http://localhost but then i ran into a roadblock. The validator claimed my pages weren't valid. No problem. However, it wouldn't say what the errors where. I tried this by checking a known invalid remote site. Same result. Then I...
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 ability for me to control categories and sub categories and key words, etc. etc. I've seen a few Internet based tools but those are way too worky and slow for our needs -- anyone produce a tool that will integrate with VS.2003 or is a good stand...
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.
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
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 get stuck on the best way to setup an application. I've read about the perl modules and how to write your own. Does one write a lot of modules and call them from the main.pl or should
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 database. At the end of the audit cycle, these adjustments are used to compute the revised taxes due. This computation is done in a fairly complex, but accurate and easy to use, spreadsheet. In the spreadsheet, there is a sheet that lists out all...
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 to a function to the end of the form onSubmit script. So if my function returns false, .NETs function is still called and when it returns true will basically render my code pointless. I'm not entirely sure of the best way to integrate custom
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: preg_match( '/^+$/', $TestString ); OK everything seems fine. However, did you know if you pass the following to preg_match: "12345\n" it will return that a match occurred?!? Even though the newline is not a valid character in our regular...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.