View Single Post
Old 07-31-2002, 08:45 PM  
TheDoc
Too lazy to set a custom title
 
TheDoc's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
That isnt easy for me to explain.


What it does is works like this....If you have a linking code to say a paysite.

IE:

http://www.domain.com/script.php?acc...0&site=massive

We know that the first var comming in is accountid and the second is the site.

So in the php of the script.php file I place in my arrays to split them in that order.

Array 0 is the script.php
Array 1 is the account id
Array 2 is the site

Example:

$var_array[0] = "script.php";
$accountid=$var_array[1];
$site=$var_array[2];

Now in apache (I cant remember the setting name) but you have to be able to set it up so if you type in something like:
domain.com/script and the dir script is not found it will look for a file called script in alpha order.

So by doing so it breaks down a url to a directory url.

http://www.domain.com/script/0000/massive

the dir script is really script.php
0000 is the account id
massive is the site

Drawbacks are you have to put full paths to images and other links or at least ../../blah.html ect cause the images/dir structure of the html will be script/0000/massive


Hope that help clears it up some.

TheDoc
http://www.largecash.com
TheDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote