Author Topic: Top List Insert in secundary pages  (Read 7562 times)

0 Members and 1 Guest are viewing this topic.

Offline John Rambo

  • Newbie
  • *
  • Posts: 6
    • View Profile
Top List Insert in secundary pages
« on: January 23, 2009, 03:15:12 AM »
hi all,

i want to insert the top list code
<?php virtual("/tp/toplist.html"); ?>
in all pages..

i have pages in internal folders (2nd and 3rd level)

i have tried slachs <?php virtual("/../tp/toplist.html"); ?>
but it not works


Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1959
    • View Profile
    • Pretty Girls from your city for night
Re: Top List Insert in secundary pages
« Reply #1 on: January 23, 2009, 03:28:22 AM »
U need to include relative to your document so for example
your toplists needs to be shown in
domain.com/dir1/dir2/index.php
U need to include
Quote
<?php include('../../tp/toplist.html'); ?>

Also check out http://hr.php.net/include/ to read more about php include.