Script Pulse

Trade Pulse => Trade Pulse Support => Topic started by: Raffaele on May 01, 2009, 08:16:00 AM

Title: subpages include...
Post by: Raffaele 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! ;)
Title: Re: subpages include...
Post by: ip0li 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

;)