Forum Moderators: coopster
Anyone have any ideas?
### Example:
<?php
function include_content_text() {
global $searchengine;
$fullcategory = $searchengine->category->data[full_name];
$splitdata = "$fullcategory";
list($state,$city) = explode(":",$splitdata);
//Let's remove some spaces from the city and state category names so we can create solid urls.
$newstate = str_replace(" ","_", $state);
$newcity = str_replace(" ","_", $city);
$navinclude = include ("guide_includes/$newcity.inc"[smilestopper]) ;
return $navinclude;
}
? >
Thanks. I was able to track this down and modify it for my needs and works great...thanks for the pointer.
<?php
if (!function_exists('file_get_contents'))
{
function file_get_contents($filename, $use_include_path = 0)
{
$file = @fopen($filename, 'rb', $use_include_path);
if ($file)
{
if ($fsize = @filesize($filename))
{
$data = fread($file, $fsize);
}
else
{
while (!feof($file))
{
$data .= fread($file, 1024);
}
}
fclose($file);
}
return $data;
}
}
?>