Author Topic: subpages include...  (Read 8056 times)

0 Members and 1 Guest are viewing this topic.

Offline Raffaele

  • Newbie
  • *
  • Posts: 1
    • View Profile
subpages include...
« on: May 01, 2009, 08:16:00 AM »
hello guys, just need an help with ssi_in include...

I have a pretty complex structure of pages and I need to include the tp code in every page.

The structure is:
mysite.com
mysite.com/page1.php
mysite.com/dir1/page2.php
mysite.com/dir1/dir2/page3.php

I use the full path for the include code and its working fine, but the doubt I have is about the dynamic filter...
lets suppose I added the code to "mysite.com/dir1/dir2/page3.php", in the html code I see

<script language="JavaScript">
var d;
d = Math.floor(Math.random () * 10000);
document.write('<s' + 'cri' + 'pt language="JavaScript" src="/tp/filter.php?pro='+ d +'"></sc' + 'ript>');

"/tp/filter.php" results of course 404... how I can use the full path for the dynamic filter too?

thanks! ;)

Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1963
    • View Profile
    • Pretty Girls from your city for night
Re: subpages include...
« Reply #1 on: May 03, 2009, 05:01:06 AM »
/tp/filter.php is absolute url from root of your domain, so it must work ;)
to test try domain.com/tp/filter.php

;)