Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-12-22 14:15:30
- elliot100
- Member
- Registered: 2008-09-26
- Posts: 13
Integrating Perl scripts into TXP
Hi there
I’ve written a world clock in Perl and want to properly integrate it into my TXP site if possible.
I have only basic knowledge of TXP, PHP and Perl, but would appreciate any pointers.
My TXP site is here:
http://www.elliotmerrony.com/
and the clock page is here:
http://www.elliotmerrony.com/worldclock/
This is actually a standalone PHP page that contains just <?php virtual (“{path_to_cgi-bin}/script.pl”); ?>
Everything on this page is produced from the Perl script to mimic the appearance of the rest of the site’s pages, as when I tried to just include the core Perl script I wanted inside a TXP article, Perl outputting its own headers was a stumbling block.
[edit: using <txp:php> virtual (“{path_to_cgi-bin}/script.pl”); </txp:php> ]
Any ideas, other than rewrite the script in PHP? I used Perl to make use of some handy modules which do not have a PHP equivalent.
Cheers
Last edited by elliot100 (2009-11-25 19:54:51)
Offline
Re: Integrating Perl scripts into TXP
You have to have
Admin>Preferences>Advanced>Allow PHP in pages?—-Yes
Also when in txp use <txp:php> virtual ("{path_to_cgi-bin}/script.pl"); </txp:php>
Regarding the above working for the perl script, I don’t know…
Last edited by colak (2008-12-22 15:11:30)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2008-12-22 15:34:35
- elliot100
- Member
- Registered: 2008-09-26
- Posts: 13
Re: Integrating Perl scripts into TXP
Actually I did do that, have edited my original post.
Offline
#4 2009-11-25 19:55:34
- elliot100
- Member
- Registered: 2008-09-26
- Posts: 13
Re: Integrating Perl scripts into TXP
Just revisiting the project and I wondered if anyone had any bright ideas on this…?
Last edited by elliot100 (2009-11-25 20:01:26)
Offline
Pages: 1