Script Pulse

Trade Pulse => Trade Pulse Support => Topic started by: John Rambo on January 23, 2009, 03:15:12 AM

Title: Top List Insert in secundary pages
Post by: John Rambo 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

Title: Re: Top List Insert in secundary pages
Post by: ip0li 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.