• Resolved joshziman

    (@joshziman)


    Using the “create a new page” feature, I tried to insert a php script as a part of my page, but after it went through the submittion process the “<?php>” broke up. Any quick fix to allow php scripts?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think you need a plugin for this.

    https://www.soeren-weber.net/post/2005/08/18/50/

    ??

    There’s three or four plugins to allow you to put php into your pages/posts, depending on whether it’s just a function call (my CG-QuickPHP does that…), or a block of code (php-exec, et al).

    Thread Starter joshziman

    (@joshziman)

    php-exec works perfectly, thank you very much.

    Hi
    I am trying to insert a toplist script into my page.
    I tried the php-exec plugin with no luck.
    Is there anyone out there that can tell me if I’m using the wrong plugin or using the plugin incorectly?

    The toplist script is
    ‘<?php include(“autorank/index.php?p=top20”); ?>’
    and it spits out this on the page

    Warning: main(autorank/index.php?p=top20): failed to open stream: No such file or directory in /home/a1541/thedailydirty.com/wp-content/themes/TDD/sidebar-left.php on line 30

    Aparently it’s trying to pull the script from the wp-content folder instead of the autorank. Sorry but my php skills are minimal.

    Thanks
    Dirty Dave

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP in a created page’ is closed to new replies.