Can anyone tell me what I’m doing wrong?


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.

Smart Sensor Video

Thank you.

PHP 02:32:06 10-08-2018 3 Answer 507 views

Bình luận

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

Bình luận (3)

  1. Jones James
    09:01:30 15/10/2019

    I think this is an informative post and it is very useful and knowledgeable. I really enjoyed reading this post. big fan, thank you!

    run 3

  2. starjackioaz
    09:14:44 28/10/2019

    I felt very happy while reading this site. This was a really very informative site for me. I really liked it. This was really a cordial post. Thanks a lot!

    t rex game

  3. aladanh alibaba
    09:50:37 24/12/2019

    Thanks for Nice and Informative Post. This article is really contains lot more information about This Topic.

    hotmail login