+ Reply to Thread
Results 1 to 5 of 5

Thread: include problem

  1. Join Date
    Jul 2007
    Posts
    3

    include problem

    I'm using flat file db.
    Here: http://www.acgroup.co.yu/counter/counter.php everything is ok as you can see.
    but when i include it to this page: http://www.acgroup.co.yu/indexii.php
    there are no number even if the path is correct.
    Indexii.php is in the root of server and the right menu,where the counter is, is in a subfolder.
    if you need more info pls post. thank you.

  2. Join Date
    Aug 2004
    Posts
    781

    Re: include problem

    http://www.acgroup.co.yu/counter/counter.php does not show up correctly.

    Your absolute path is probably incorrect. Ensure that you are using an absolute path and NOT a relative path or a URL. There is a difference and I have posted how to discover your absolute path at http://www.dev-forums.com/index.php?topic=258.0

  3. Join Date
    Jul 2007
    Posts
    3

    Re: include problem

    abspath is ok. you can see that when you right click after text "People Online: " and choose properties it shows the right path.

  4. Join Date
    Aug 2004
    Posts
    781

    Re: include problem

    This is a similar problem as was posted before ( http://www.dev-forums.com/index.php?topic=177.0 ).

    It has to do with the image path and the way your page is setup (as far as paths go). However, it is just easier for me to post an official fix for the problem.

    I have attached counter.php file.

    Once you make that change, just ensure that your images directory is properly set, such as /counter/images/
    Attached Files

  5. Join Date
    Jul 2007
    Posts
    3

    Re: include problem

    Works fine. Thank you!

+ Reply to Thread

Posting Permissions

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