Wordpress Page via PHP

4 replies
  • WEB DESIGN
  • |
I have a PHP Code I would like to run in a page using Wordpress. I tried the plugins that said it would run the code but I am having no luck.

Can someone please help with a link to a wordpress plugin that I can use to run a PHP code on a wordpress page.


Thank you!

Tim
#page #php #wordpress
  • {{ DiscussionBoard.errors[8305085].message }}
    • Profile picture of the author Boomland Jenkins
      Originally Posted by mojojuju View Post

      I've been using Execute PHP for a few years, hasn't failed me much.

      Just so you know, WordPress will break your scripts sometimes, by adding extra paragraph tags or other odd behavior.

      If you have advanced code going on, make a page template in your theme with the standard page loop, but include the necessary PHP code in there too.
      {{ DiscussionBoard.errors[8305915].message }}
  • Profile picture of the author cyperpc
    I will give it shot, thank you very much!
    {{ DiscussionBoard.errors[8307614].message }}
  • Profile picture of the author cyperpc
    Well it did not work,,, this is the code I am using it is from GoldenCan dot com

    I am not a programmer per say

    <code><?php
    $SID="47fe24ad-7ab9-4277-9f76-d37d548c2b20";
    $IPAddress = urlencode($_SERVER['REMOTE_ADDR']);
    $UserAgent = urlencode($_SERVER['HTTP_USER_AGENT']);
    $Host=urlencode($_SERVER['HTTP_HOST']);
    $PageURL=urlencode($_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING']);
    $URL="http://si.goldencan.com/GetData.aspx?ver=2.0&SID=".$SID;
    $URL=$URL.'&Host='.$Host;
    $URL = $URL.'&PageURL='.$PageURL;
    $URL = $URL.'&IPAddress='.$IPAddress;
    $URL = $URL.'&UserAgent='.$UserAgent;
    include($URL);
    ?></code>
    {{ DiscussionBoard.errors[8307642].message }}

Trending Topics