[Help!] How to embed php file to WP sidebar?

Discussion in 'Blogging' started by Raining Blood, Jul 17, 2008.

  1. #1
    Hello people,

    I have this blog with a sidebar on it and I'm about to embed this small php script. This script will show the currencies exchange rate.

    I have added this code
    on the sidebar script and I have also uploaded the currency.php file to server.
    When I checked my blog, the currencies exchange rate doesn't show there :confused:

    How to fix this? Is my step correct?
    Or where should I upload the currency.php script if my blog is located at xxx.com/myblog ?

    Please help!
    Thanks! :D
     
    Raining Blood, Jul 17, 2008 IP
  2. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #2
    download execphp plugin.
     
    MeetHere, Jul 17, 2008 IP
  3. MakeThatDollar

    MakeThatDollar Notable Member

    Messages:
    4,451
    Likes Received:
    158
    Best Answers:
    0
    Trophy Points:
    225
    #3
    Try uploading currency.php directly within the myblog folder.
     
    MakeThatDollar, Jul 17, 2008 IP
  4. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah, put it in the theme folder and use <?php include (TEMPLATEPATH . '/currency.php'); ?>
     
    Cash Nebula, Jul 17, 2008 IP
  5. Raining Blood

    Raining Blood Active Member

    Messages:
    260
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Problem fixed! :D
    Thank you everybody!!!! :cool:
     
    Raining Blood, Jul 18, 2008 IP