Add Love Calculator Script to single WP page

Discussion in 'PHP' started by Alanaj, Oct 18, 2011.

  1. #1
    Hi All,

    I'm trying to add a love calulator script to one page in WP. The readme file is not very helpful and I'm not sure what to upload or install where.

    These are the files that are with the script:
    images (folder)
    .htaccess
    advertisements.php
    config.php
    favicon.ico
    index.php
    locale.php
    login_styles.css
    logs.php
    lovecalc.inc.php
    Readme.txt
    sql.txt

    Any and all help will be greatly appreciated.

    Thanks in advance!
     
    Alanaj, Oct 18, 2011 IP
  2. moads

    moads Member

    Messages:
    115
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #2
    just use the include function as a PHP snippet and include the script file. like this...

    <? include("script.php"); ?>

    It will only run on the page you put it on.. don't add it to the site on the wp control panel.
     
    moads, Oct 19, 2011 IP