Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can't get script to work

    Sorry for the (probably) dumb question. I've downloaded a PHP script and have got most of it working for a banner rotator. However, I now need to pu the following bit of script into my webpage:

    <?php
    include_once("/PATH_TO_SCRIPT/ad_rotator.php");
    ?>

    I can't work out what to put in place of PATH_TO_SCRIPT

    My webpage resides in a folder called Actinic at www.mydomain.net/Actinic and my php script resides in a folder called ADV at www.mydomain.net/ADV

    Would appreciate any help please!!!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    On your webpage at the very top add this
    PHP Code:
    <?php
    include_once($_SERVER['DOCUMENT_ROOT']."/ADV/ad_rotator.php");
    ?>
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •