Lighthouse

A lighthouse is a tower, building, or other type of structure designed to emit light from a system of lamps and lenses or, in older times, from a fire, and used as an aid to navigation for maritime pilots at sea or on inland waterways.

Lighthouses mark dangerous coastlines, hazardous shoals, reefs, safe entries to harbors, and can also assist in aerial navigation. Once widely used, the number of operational lighthouses has declined due to the expense of maintenance and replacement by modern electronic navigational devices.

Design

Architect\'s design of Split Rock Lighthouse The lighthouses in Finland as of 1909 showing differing architecture

To be effective the lamp must be high enough to be seen before the danger is reached by a mariner. The minimum height is calculated according to trigonometry by taking the square root of the height of the light above the water in feet and multiplying it by 1.17 to yield the distance to the horizon in nautical miles.

Where dangerous shoals are located far off a flat sandy beach, the prototypical tall masonry coastal lighthouse is constructed to assist the navigator making a landfall after an ocean crossing. Often these are cylindrical to reduce the effect of wind on a tall structure, such as Cape May Light. Smaller versions of this design are often used as harbor lights to mark the entrance into a harbor, such as New London Harbor Light.

Where a tall cliff exists, a smaller structure may be placed on top such as at Horton Point Light. Sometimes, such a location can be too high, for example along the west coast of the United States, where frequent low clouds can obscure the light. In these cases, lighthouses are placed below clifftop to ensure that they can still be seen at the surface during periods of fog or low clouds, as at Point Reyes Lighthouse. Another victim of fog was the Old Point Loma lighthouse, which was replaced in 1891 with a lower lighthouse, New Point Loma lighthouse.

As technology advanced, prefabricated skeletal iron or steel structures tended to be used for lighthouses constructed in the 20th century. These often have a narrow cylindrical core surrounded by an open lattice work bracing, such as Finns Point Range Light.

Sometimes a lighthouse needs to be constructed in the water itself. Wave-washed lighthouses are masonry structures constructed to withstand water impact, such as Eddystone Lighthouse in Britain and the St. George Reef Light off California. In shallower bays, Screw-pile lighthouse ironwork structures are screwed into the seabed and a low wooden structure is placed above the open framework, such as Thomas Point Shoal Lighthouse. As screw piles can be disrupted by ice, steel caisson lighthouses such as Orient Point Light are used in cold climates. Orient Long Beach Bar Light (Bug Light) is a blend of a screw pile light that was converted to a caisson light because of the threat of ice damage.

In waters too deep for a conventional structure, a lightship might be used instead of a lighthouse, such as the former lightship Columbia. Most of these have now been replaced by fixed light platforms (such as Ambrose Light) similar to those used for offshore oil exploration. '; //END MY VARIABLES //process to pass variables to iframe session_start(); $_SESSION["gallerylabel"] = $searchgallerylabel; //"Gallery Of" Label $_SESSION["pass"] = $searchpass; //Search Term To Pass $_SESSION["ddlabel"] = $searchddlabel; //Dropdown Label //remove multiple spaces: while ((substr_count($search,' ') >= 1)) { //echo substr_count($search,' '); //echo '

'.$search.'
'; $search = str_replace(' ',' ',$search); } //remove multiple speech marks: while ((substr_count($search,'""') >= 1)) { $search = str_replace('""','"',$search); } //define globals so they can be returned by functions //$GLOBALS['highlight1'] = ''; //$GLOBALS['highlight2'] = ''; $GLOBALS['result'] = ''; //rem out two globals above to turn off highlighting function debug($lineno) { echo 'PHP line no: '.$lineno.''; } function test($variable,$lineno) { echo '

PHP line no: '.$lineno.' TEST VARIABLE = '.$variable.'

'; } function highlight($colloop,$thefield,$thesearch) { $fieldlength = strlen($thefield); $searchlength = strlen($thesearch); $pos = strpos($thefield, $thesearch); $stringend = $searchlength + $pos; $slice1 = substr($colloop, 0, $pos); $slice2 = substr($colloop, $pos, $searchlength); $slice3 = substr($colloop, $stringend); $GLOBALS['result'] = $slice1.$GLOBALS['highlight1'].$slice2.$GLOBALS['highlight2'].$slice3; //rebuild text with highlight // echo '
'.$GLOBALS['result']; } //CHANGE $title = 'Seocom - Select Vintage '.$change.' For Sale'; echo << Seocom - Select Vintage $change For Sale
Seocom Enterprises Unlimited LLC
Stan Olszewski, Byram, Connecticut - Contact Me
Select Vintage $change For Sale

ALABAMA - (AL), ALASKA - (AK), ARIZONA - (AZ), ARKANSAS - (AR), CALIFORNIA - (CA), COLORADO - (CO), CONNECTICUT - (CT), DELAWARE - (DE), DISTRICT OF COLUMBIA - (DC), FLORIDA - (FL), GEORGIA - (GA), HAWAII - (HI), IDAHO - (ID), ILLINOIS - (IL), INDIANA - (IN), IOWA - (IA), KANSAS - (KS), KENTUCKY - (KY), LOUISIANA - (LA), MAINE - (ME), MARYLAND - (MD), MASSACHUSETTS - (MA), MICHIGAN - (MI),
$wikibio

(From Wikipedia, the free encyclopedia)



A Great Site For Visiting & Researching Lighthouses



HTML; if (($search == '') or ($search == '"')) {exit('No usable search string found!');} $fp = fopen($datafile,'r'); if (!$fp) {exit('

ERROR: Unable to open database file!

');} $row = 0; //ORG //while (!feof($fp)) { // $line = fgets($fp,2048); //use 1024 for short lines - 2048 if very long lines // $temp[$row] = explode('|', $line); // if ($sortby == 'firstname') {$sortkey = strtolower($temp[$row][0]);} // if ($sortby == 'writer') {$sortkey = strtolower($temp[$row][1]);} // if ($sortby == 'director') {$sortkey = strtolower($temp[$row][2]);} // if ($sortby == 'producer') {$sortkey = strtolower($temp[$row][3]);} // if ($sortby == 'aired') {$sortkey = strtolower($temp[$row][4]);} // array_unshift($temp[$row], $sortkey); //add sortkey to start of array // $col[$row] = $sortkey.'|'.$temp[$row][1].'|'.$temp[$row][2].'|'.$temp[$row][3].'|'.$temp[$row][4].'|'.$temp[$row][5]; // $row++; //} while (!feof($fp)) { $line = fgets($fp,2048); //use 1024 for short lines - 2048 if very long lines $temp[$row] = explode('|', $line); if ($sortby == 'seq') {$sortkey = strtolower($temp[$row][0]);} if ($sortby == 'codeOZ') {$sortkey = strtolower($temp[$row][1]);} if ($sortby == 'code') {$sortkey = strtolower($temp[$row][2]);} if ($sortby == 'description') {$sortkey = strtolower($temp[$row][3]);} if ($sortby == 'condition') {$sortkey = strtolower($temp[$row][4]);} if ($sortby == 'notes') {$sortkey = strtolower($temp[$row][5]);} if ($sortby == 'tmb') {$sortkey = strtolower($temp[$row][6]);} if ($sortby == 'view') {$sortkey = strtolower($temp[$row][7]);} if ($sortby == 'price') {$sortkey = strtolower($temp[$row][8]);} if ($sortby == 'buy') {$sortkey = strtolower($temp[$row][9]);} if ($sortby == 'keyword') {$sortkey = strtolower($temp[$row][10]);} if ($sortby == 'quantity') {$sortkey = strtolower($temp[$row][11]);} if ($sortby == 'Extra') {$sortkey = strtolower($temp[$row][12]);} if ($sortby == 'Available') {$sortkey = strtolower($temp[$row][13]);} if ($sortby == 'ORD') {$sortkey = strtolower($temp[$row][14]);} if ($sortby == 'state') {$sortkey = strtolower($temp[$row][15]);} if ($sortby == 'code1sort') {$sortkey = strtolower($temp[$row][16]);} if ($sortby == 'code2sort') {$sortkey = strtolower($temp[$row][17]);} array_unshift($temp[$row], $sortkey); //add sortkey to start of array $col[$row] = $sortkey.'|'.$temp[$row][1].'|'.$temp[$row][2].'|'.$temp[$row][3].'|'.$temp[$row][4].'|'.$temp[$row][5].'|'.$temp[$row][6].'|'.$temp[$row][7].'|'.$temp[$row][8].'|'.$temp[$row][9].'|'.$temp[$row][10].'|'.$temp[$row][11].'|'.$temp[$row][12].'|'.$temp[$row][13].'|'.$temp[$row][14].'|'.$temp[$row][15].'|'.$temp[$row][22].'|'.$temp[$row][23]; $row++; } fclose($fp); sort($col); reset($col); /* echo '
';
print_r($col);
exit;
*/

$arrays = count($col) - 1;

$tablecells = '';
$loop = -1;
$and = $once = $found = $found1 = $found2 = $bothfound = $search2also = 'no';
$count = 0;
$speechmarks = '';

//test for AND4 but not four words that must be together (""):
if ((strstr($search,' AND4 ')) and ($search[0] <> '"')) {
  $and = 'yes';
//list last 2 $wordX's
  list ($word1, $word2, $word3, $word4, $word5, $word6, $word7) = explode (' ', $search); //remove AND
//add $wordX
  $word1 = strtolower($word1);
  $word3 = strtolower($word3);
  $word5 = strtolower($word5);
  $word7 = strtolower($word7);
  if ($word1 == $word3) {
    $search = $word1;
    $and = 'no';
  } else {
//add $wordX
      $search1 = $word1;
      $search2 = $word3;
      $search3 = $word5;
      $search4 = $word7;
      while ($loop < $arrays) {
      $loop++;
      $field = strtolower($col[$loop]);
//add search string
      if ((strstr($field,$search1)) and (strstr($field,$search2)) and (strstr($field,$search3)) and (strstr($field,$search4))) {
        $found = $found1 = $found2 = $found3 = $found4 = $bothfound = 'yes';
        //word1
        highlight($col[$loop],$field,$search1);
        $col[$loop] = $GLOBALS['result'];
        //word2
        $field = strtolower($col[$loop]); //update field to include highlighted version from above
        highlight($col[$loop],$field,$search2,$search3);
        //add rows
        $col[$loop] = explode('|',$GLOBALS['result']);
        $tablecells.='




'.$col[$loop][3].'
'.$col[$loop][4].' '.$col[$loop][5].'
'.$col[$loop][6].'
Keywords:
'.$col[$loop][11].'

View Front Image
Price: $'.$col[$loop][9].'
'.$col[$loop][14].' Available
(Subject To Any Prior Or Pending Sales)

Check out now
'; $count++; } } } } //test for AND3 but not three words that must be together (""): if ((strstr($search,' AND3 ')) and ($search[0] <> '"')) { $and = 'yes'; list ($word1, $word2, $word3, $word4, $word5) = explode (' ', $search); //remove AND $word1 = strtolower($word1); $word3 = strtolower($word3); $word5 = strtolower($word5); if ($word1 == $word3) { $search = $word1; $and = 'no'; } else { $search1 = $word1; $search2 = $word3; $search3 = $word5; while ($loop < $arrays) { $loop++; $field = strtolower($col[$loop]); if ((strstr($field,$search1)) and (strstr($field,$search2)) and (strstr($field,$search3))) { $found = $found1 = $found2 = $found3 = $bothfound = 'yes'; //word1 highlight($col[$loop],$field,$search1); $col[$loop] = $GLOBALS['result']; //word2 $field = strtolower($col[$loop]); //update field to include highlighted version from above highlight($col[$loop],$field,$search2,$search3); //word3 $field = strtolower($col[$loop]); //update field to include highlighted version from above highlight($col[$loop],$field,$search3); //add rows $col[$loop] = explode('|',$GLOBALS['result']); $tablecells.='
'.$col[$loop][3].'
'.$col[$loop][4].' '.$col[$loop][5].'
'.$col[$loop][6].'
Keywords:
'.$col[$loop][11].'

View Front Image
Price: $'.$col[$loop][9].'
'.$col[$loop][14].' Available
(Subject To Any Prior Or Pending Sales)

Check out now
'; $count++; } } } } //test for AND but not two words that must be together (""): if ((strstr($search,' AND ')) and ($search[0] <> '"')) { $and = 'yes'; list ($word1, $word2, $word3) = explode (' ', $search); //remove AND $word1 = strtolower($word1); $word3 = strtolower($word3); if ($word1 == $word3) { $search = $word1; $and = 'no'; } else { $search1 = $word1; $search2 = $word3; while ($loop < $arrays) { $loop++; $field = strtolower($col[$loop]); if ((strstr($field,$search1)) and (strstr($field,$search2))) { $found = $found1 = $found2 = $bothfound = 'yes'; //word1 highlight($col[$loop],$field,$search1); $col[$loop] = $GLOBALS['result']; //word2 $field = strtolower($col[$loop]); //update field to include highlighted version from above highlight($col[$loop],$field,$search2); //add rows $col[$loop] = explode('|',$GLOBALS['result']); $tablecells.='
'.$col[$loop][3].'
'.$col[$loop][4].' '.$col[$loop][5].'
'.$col[$loop][6].'
Keywords:
'.$col[$loop][11].'

View Front Image
Price: $'.$col[$loop][9].'
'.$col[$loop][14].' Available
(Subject To Any Prior Or Pending Sales)

Check out now
'; $count++; } } } } if (($and == 'no') and ($bothfound == 'no')) { $search = strtolower($search); $search1 = $search2 = ''; if (strstr($search,' ')) { list ($search1, $search2) = explode (' ', $search); if ($search2 == $search1) {//when both words are the same $search = $search1; //make search just first word $search1 = $search2 = ''; //destroy both words from split } } //test for space in search but not two words that must be together (""): if ((strstr($search,' ')) and ($search[0] <> '"')) { list ($search1, $search2) = explode (' ', $search); //search for two separate words while ($loop < $arrays) { $loop++; $search2also = 'no'; $field = strtolower($col[$loop]); $fieldkept = $field; //preserve text without web code if (strstr($field,$search1)) { if (strstr($field,$search2)) {$search2also = $bothfound = 'yes';} $found = $found1 = 'yes'; highlight($col[$loop],$field,$search1); $col[$loop] = $GLOBALS['result']; if ($search2also <> 'yes') { //only output once when both words on same row //add rows $col[$loop] = explode('|',$GLOBALS['result']); $tablecells.='
'.$col[$loop][3].'
'.$col[$loop][4].' '.$col[$loop][5].'
'.$col[$loop][6].'
Keywords:
'.$col[$loop][11].'

View Front Image
Price: $'.$col[$loop][9].'
'.$col[$loop][14].' Available
(Subject To Any Prior Or Pending Sales)

Check out now
'; $count++; } } $field = strtolower($col[$loop]); //update field to include highlighted version from above if (strstr($fieldkept,$search2)) { //search on line without highlighting added $found = $found2 = 'yes'; highlight($col[$loop],$field,$search2); if (($search2also == 'yes') or ($found2 == 'yes')) { //add rows $col[$loop] = explode('|',$GLOBALS['result']); $tablecells.='
'.$col[$loop][3].'
'.$col[$loop][4].' '.$col[$loop][5].'
'.$col[$loop][6].'
Keywords:
'.$col[$loop][11].'

View Front Image
Price: $'.$col[$loop][9].'
'.$col[$loop][14].' Available
(Subject To Any Prior Or Pending Sales)

Check out now
'; $count++; } } } } else { //check if speech marks and remove them: if ($search[0] == '"') { $search = str_replace('"','',$search); $speechmarks = '\''; //for output later } if ($search <> '') { //do normal search while ($loop < $arrays) { $loop++; $field = strtolower($col[$loop]); if (strstr($field,$search)) { $found = $found1 = 'yes'; highlight($col[$loop],$field,$search); //add rows $col[$loop] = explode('|',$GLOBALS['result']); $tablecells.='
'.$col[$loop][3].'
'.$col[$loop][4].' '.$col[$loop][5].'
'.$col[$loop][6].'
Keywords:
'.$col[$loop][11].'

View Front Image
Price: $'.$col[$loop][9].'
'.$col[$loop][14].' Available
(Subject To Any Prior Or Pending Sales)

Check out now
'; $count++; } } } else {exit('No usable search string found!');} } } //if ($and == 'no') //ORG //echo '

Your search for \''.$speechmarks.$search.$speechmarks.'\' was found in the following '.$count.' lines of the database:

(FROM TWO LINES DOWN) //CHANGE if ($found == 'yes') { echo '

Browsing table of '.$count.' '.$change2.' items

For Box 2 Items, Please Click Here

This table is sortable, just click on any heading.
'.$tablecells.'
Code Description Condition Notes View Buy
'; } else { echo '

Your search for \''.$speechmarks.$search.$speechmarks.'\' was not found.

'; } echo '
'; ?>