$max_words && $max_words > 0) { $phrase = implode(' ',array_slice($phrase_array, 0, $max_words)).'...' ;}; return $phrase; } //-------------------------------------------------------------------------- // Return an array with all image file paths for a specified directory // function getImages($dir) { $imagetypes = array("image/jpeg", "image/gif", "image/png"); // array to hold return value $retval = array(); // add trailing slash if missing if(substr($dir, -1) != "/") $dir .= "/"; // full server path to directory $fulldir = "{$_SERVER['DOCUMENT_ROOT']}/$dir"; $d = @dir($fulldir) or die("getImages: Failed opening directory $dir for reading"); while(false !== ($entry = $d->read())) { // skip hidden files if ($entry[0] == ".") continue; // check for image files $f = escapeshellarg("$fulldir$entry"); $mimetype = trim(`file -bi $f`); foreach($imagetypes as $valid_type) { if(preg_match("@^{$valid_type}@", $mimetype)) { $retval[] = "$entry"; break; } } } $d->close(); return $retval; } // Populate the three image arrays for the slideshow $slides[0] = getImages('/images/slides00/thumbnail/'); $slides[1] = getImages('/images/slides01/thumbnail/'); $slides[2] = getImages('/images/slides02/thumbnail/'); ?>
terracepark.com
terracepark.org
 

Community & Government Website 
 
Other Sites of Interest
 

 

      

Hamilton County Board of Elections

Bureau of Motor Vehicles

Hamilton County General Health District

Hamilton County

State of Ohio

ICRC (Terrace Park page)

NOAA River Conditions for SW Ohio

 


  The Village of Terrace Park
428 Elm Avenue
Terrace Park, Ohio 45174
stutenroth@terracepark.org
Tel: 513-831-2138Fax: 513-831-9236
Fire/EMS Tel: 513-831-2196 • Fax: 513-831-0835