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