Literature Files

catalog_guide
Catalog Guide 918
How To Use the Catalog

PEM® Catalogs Deutsch | Francais | Italiano
ATLAS® Catálogo
Catalog / Sample Request Click Here

Online literature contains the most current information available.

Most Frequently Downloaded

CL – Self-Clinching Nuts
FH – Self-Clinching Studs and Pins
K – Fasteners For Use In or With PC Boards
SO – Self-Clinching Standoffs
HB – Self-Clinching Fastener Handbook


[insert_php] //print “
";
  //print_r(dns_get_record("pemnet.com"));
  //print_r(checkdnsrr("pemnet.com"));
  //print "
“; //$x = file(“http://pemnet.b2bdd.net/literature-page-data/”); $x = explode(“\n”, get_page_by_title( ‘literature-page-data’ )->post_content); $tables = array(); $category0 = ”; $cell = 0; $lit = array(); //print “
";
  for ($i = 0; $i < count($x); $i++) {
    $line = cleanupline($x[$i]);

    //if (strpos($line, ": ")) print "$line\n";

    if (empty($line)) continue;
    if (preg_match("/category\: (.*)/", $line, $m)) {    
      $c = trim($m[1]);
      if (!empty($c)) {
        // add the cell we've been filling up
        if (!empty($lit)) {
          $tables[$category][] = $lit;
          $lit = array();
        }
        if ($c != $category0) {      
          // new category        
          $category = $c;
          $cell = 0;
          $category0 = $category;
        }
      }
    }
    if (preg_match("/url: (.*)$/", $line, $m)) $lit['url'] = $m[1];
    if (preg_match("/img: (.*)$/", $line, $m)) $lit['img'] = $m[1];
    if (preg_match("/titleshort: (.*)$/", $line, $m)) $lit['titleshort'] = $m[1];
    if (preg_match("/titlelong: (.*)$/", $line, $m)) $lit['titlelong'] = $m[1];
    if (preg_match("/npages: (.*)$/", $line, $m)) $lit['npages'] = $m[1];
    if (preg_match("/revised: (.*)$/", $line, $m)) $lit['revised'] = $m[1];
    if (preg_match("/onlineonly: (.*)$/", $line, $m)) $lit['onlineonly'] = $m[1];
  }
  //print "
\n"; if (!empty($lit)) $tables[$category][] = $lit; foreach (array_keys($tables) as $category) { if (strpos($category, "Fasteners") !== false) $anchor = "pemfasteners"; if (strpos($category, "Plastic") !== false) $anchor = "siinserts"; if (strpos($category, "Atlas") !== false) $anchor = "atlas"; if (strpos($category, "StickScrew") !== false) $anchor = "stickscrew"; if (strpos($category, "Fastener Installation Equipment") !== false) $anchor = "fastener-installation-equipment"; if (strpos($category, "New Products & Capabilities") !== false) $anchor = "new-products-capabilities"; if (strpos($category, "Other Literature") !== false) $anchor = "otherliterature"; if (strpos($category, "Capabilities") === 0) $anchor = "capabilities"; if (strpos($category, "Innovation Briefs") !== false) $anchor = "innovation-briefs"; newlittable($anchor, $category); $i = 0; foreach ($tables[$category] as $lit) { printcell($lit); $i++; if ($i == 5) { closerow(); $i = 0; } } closetable($i); } function closerow() { print "\n"; print "\n"; } function closetable($i) { while ($i < 5) { print " "; $i++; } print "\n\n\n
\n"; } function newlittable($anchor, $category) { print "\n"; print "

$category

\n"; print "\n"; print "\n"; } function cleanupline($line) { $line = trim($line); $line = trim($line); $line = trim($line); $line = trim($line); $line = str_replace("
", "", $line); $line = str_replace("‘", "", $line); return $line; } function printcell($lit) { print "\n"; } [/insert_php]
\n"; print " \n"; print " \n"; print "
\n"; print " " . $lit['titleshort'] . " (" . $lit['npages'] . " pages)\n"; print "
\n"; print " " . $lit['titlelong'] . "\n"; print "
\n"; if (!empty($lit['revised'])) print " Revised " . $lit['revised'] . "\n"; $lit['onlineonly'] = strtolower($lit['onlineonly']); if (strpos($lit['onlineonly'], "yes") !== false) print "Available online only"; print "