Tags:
create new tag
view all tags

SID-01425: Using PHP in a Plugin

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Using PHP in a Plugin
SupportCategory CategoryPlugins
TWiki version 5.1.0
Server OS Debian
Web server Apache 5-Dreamhost
Perl version 5.0
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2012-03-16 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.