Page 1 of 1

Can i use php code in a knowledgebase article?

Posted: Sat Oct 26, 2019 2:57 pm
by Hidroxid
Script URL: microtech.com.ve
Version of script: 2.8.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: php in article, htmlpurifier configuration

Write your message below:
Hi
I need that an article of the knowledgebase use information from php, i need use the tags <?php ... code ... ?>

Can i do that?

Thanks!

Re: Can i use php code in a knowledgebase article?

Posted: Sat Oct 26, 2019 3:58 pm
by Klemen
No, allowing that would be a huge security risk.

If you want to achieve that you could edit article contents directly in the database. For example, place CODE_HERE in the article then edit the article in MySQL and replace CODE_HERE with your PHP code. Obviously, the code will be removed again if you edit and save the article from the editor.