Can anyone tell me what I’m doing wrong?

Hello,

I need to include some php, I think I’ve followed all instructions on the textpattern site, and mooched around on here and the web in general but can’t seem to find any answers.

When I put < txp:php>echo ‘Hello World’;< /txp:php> (minus the space) into an article, it doesn’t get displayed on the page (nor in the source code).

The client is running version 4.0.2 and has ‘allow_page_php_scripting’ and ‘allow_article_php_scripting’ set to 1 in both lib/admin_config.php and in the database (txp_prefs)

The user that I’m logging in as has ‘privs’ set to 3, this id is enabled for article.edit in admin_config and the db.

What I do find is that I can run the code if I put it into a ‘page’, but I really need to be able to put it into an ‘article’
Can anyone tell me what I’m doing wrong?

Please help.

I didn't find the right solution from the internet.

References:
https://forum.textpattern.io/viewtopic.php?id=18948
Smart Sensor Video

Thank you.

PHP 02:30:42 10-08-2018 0 Answer 179 views

Bình luận

(Bạn vui lòng đăng nhập để thêm bình luận)

Bình luận (0)