Integrating PHP code in Wordpress

Discussion in 'HTML & Website Design' started by netgo, Oct 19, 2009.

  1. #1
    Hi,

    I am trying to insert PHP code into my wordpress HTML post.

    This is the code:

    <phpcode>
    <?php
    if ($_GET['kw'])
    {echo ucwords($_GET['kw']);}
    else
    {echo ucwords(”Remodeling Project”);}
    ?> </phpcode>

    And the error message that is displayed is as follows:

    Parse error: syntax error, unexpected T_STRING in /home/content/boo/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 10

    Any help will be greatly appreciated
     
    netgo, Oct 19, 2009 IP
  2. snowalker

    snowalker Member

    Messages:
    126
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    I don't know php either but I know this is a plugin error. Try to reinstall exec-php plugin.
     
    snowalker, Oct 19, 2009 IP
  3. Gungz

    Gungz Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try to find suitable plugin.
    If you don't use any plugin, I think it's impossible.
     
    Gungz, Oct 19, 2009 IP
  4. netgo

    netgo Active Member

    Messages:
    279
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    #4
    I have installed 2 EXEC PLUGINS and none of them worked
     
    netgo, Oct 20, 2009 IP