MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: azzureal on 2017-05-10, 13:11:26

Title: How can I use PHP code inside XML?
Post by: azzureal on 2017-05-10, 13:11:26
is it possible to put PHP code inside a XML document to be later executed? For example, can I say "<? phpinfo();?> in .xml
Title: Re: How can I use PHP code inside XML?
Post by: fossxplorer on 2017-05-10, 13:13:54
My guess is: i don't think you can do it directly. You have to follow XML syntax so you will probably need XML parser at some point to extract <? phpinfo();?> and then run it?

is it possible to put PHP code inside a XML document to be later executed? For example, can I say "<? phpinfo();?> in .xml
Title: Re: How can I use PHP code inside XML?
Post by: MRatWork on 2017-05-10, 14:22:44
Try add '.xml' for 'PHP-fpm Limit Extensions' in 'php configure'.
Title: Re: How can I use PHP code inside XML?
Post by: azzureal on 2017-05-11, 03:16:36
I added .xml. but not work.

How can I slove it?