View Single Post
Old 04-01-2004, 02:37 AM   #3
bigals
Orange Mole
 
Join Date: Nov 2003
Posts: 41
the code from the files are as follows:

PHP Code:
<?php
    
// Strip the path from the current script location 
    
$path dirname($_SERVER['PHP_SELF']); 
    
// Explode out the directors from the path 
    
$dirs explode("/"$path); 
    
$numdirs count($dirs) - 1
    
// Directory closest to the php page 
    
$region $dirs[$numdirs];
    
// Directory before dir1 
    
$country $dirs[$numdirs 1];
    
// Set Status
    
$url="http://www.mysite.com/templates/region_template.php";
$url.="?region=".urlencode($region)."&country=".urlencode($country);
$file_output=file_get_contents($url);
echo 
$file_output;
?>
thats all that is in each index.php file, so how can these be indexed?

I'm not very knowledgable so could you possibly explain?

thanks.
bigals is offline   Reply With Quote