/    Sign up×
Community /Pin to ProfileBookmark

PHP + Perl on same page

Hi Guys,

Anybody know of a way to use Perl and PHP on the same page? I’m a neophite with both, but am building a site with basic PHP includes for navigation, header, footer, etc. I need to create a system for the client to update information on his own (probably text only). In the past, we’ve used a Perl cgi script that writes text, from a form on a web page, to a .txt file. That file’s contents are then displayed in tabular format on a .cgi web page. Problem is, we can’t seem to make Perl and PHP co-exist.

Is there a pre-made PHP solution to this problem? It needs to be simple, or at least clearly documented.


_____________________

I may have just stumbled across a supremely simple answer in another post. I’ll test & post again if I still need the help.

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@JonaMay 08.2004 — [font=arial]You could process .cgi files with both the PHP and Perl executables.[/font]
Copy linkTweet thisAlerts:
@Aronya1authorMay 08.2004 — Translation?
Copy linkTweet thisAlerts:
@JonaMay 08.2004 — [font=arial]You know how CGI files are processed by perl.exe, and PHP filse are processed by php.exe? Well, you should be able to change the setting to make it so that CGI files are also parsed by php.exe. Though, I don't know if this will cause any conflicts...[/font]
Copy linkTweet thisAlerts:
@Aronya1authorMay 08.2004 — OK. Sounds like a server setting change, right? If so, is that something the hosting company is going to be likely to want to do?
Copy linkTweet thisAlerts:
@NevermoreMay 08.2004 — Easiest would be if you could use frames to hold either the PHP or CGI files, so they get parsed seperately. Hosts are unlikely to change the settings for you.

Alternatively, just use Perl for the header etc.
Copy linkTweet thisAlerts:
@Aronya1authorMay 08.2004 — Thanks for the suggestion. I'll look into accomplishing it that way.
×

Success!

Help @Aronya1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...