SID-01425: Using PHP in a Plugin
| Status: |
Answered |
TWiki version: |
5.1.0 |
Perl version: |
5.0 |
| Category: |
CategoryPlugins |
Server OS: |
Debian |
Last update: |
13 years ago |
Is it acceptable to write code in a TWIKI plugin using PHP rather than Perl.? I need to store data in a
MySQl database and my code is written in PHP presently. What is required to allow PHP to be used?
--
DavidSteininger - 2012-03-15
Discussion and Answer
Maybe you can use
CPAN:PHP::Interpreter
- see Linux Journal article on
Integrating PHP and Perl
,
A
PhpInterpreterPlugin would be a nice addition to TWiki! If you create one please consider contributing it back to the TWiki community. Learn
how to get involved.
--
PeterThoeny - 2012-03-16
Security needs to be considered. It can be very dangerous to allow arbitrary execution of PHP code simply by uploading an attachment or editing a TWiki page.
--
PeterThoeny - 2012-03-16
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.