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:30:42 10-08-2018 3 Answer 439 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. James Jones
    09:08:41 05/08/2019

    I have read your article, it is very informative and helpful for me. I admire the valuable information you offer in your articles. Thanks for posting it. fireboy and watergirl

  2. Michael_Orozco
    02:22:27 16/08/2019

    This is an excellent post I have seen thanks to sharing it. It is really what I wanted to see hope in future you will continue for sharing such an excellent post.

    t rex game

  3. Bryan_Ruffin
    01:39:19 27/09/2019

    I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information?

    starjack io