cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Missing functionality: Needs Documentation Task

How to include PHP page or PHP script in my foswiki pages

Hi.

All I need to know is how to insert a PHP script into my foswiki pages. or how to use a php (.php) file in my foswiki pages (HTML). Because i want to run a page named index.php


could someone helps me please?

thanks

_____________________________________________________________________________________________________________________________

An easy but not recomended way is to enable {INCLUDE}{AllowURLs}. Run configure > Security and Authentication > Environment.
After that you can insert:
%INCLUDE{"<URLpath>/your_script.php"}% 

in any topic and it wil display the result of the php script.
It would be better another way.

-- PompetardO - 07 Nov 2011

A simple work-around is th put a space after the first ?

<? php ....

-- DavidRimmer - 06 May 2016

QuestionForm edit

Subject Missing functionality
Extension
Version Foswiki 1.1.3
Status Needs Documentation Task
Related Topics
Topic revision: r4 - 06 May 2016, DavidRimmer - This page was cached on 13 Aug 2018 - 23:19.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy