setFlags(SplFileObject::READ_CSV); $csv = array(); foreach($file as $line) { $csv[] = $line; } fclose($temp); $file = null; //print_r($csv); $match = parse_url($_SERVER["REQUEST_URI"]); $url = $match["path"]; $csv1 = array(); foreach( $csv as $key => $value ) { if( $key == 0 || $key == "" ) continue; $csv1[ $value[0] ]["h1"] = $value[1]; $csv1[ $value[0] ]["title"] = $value[2]; $csv1[ $value[0] ]["keyword"] = $value[3]; $csv1[ $value[0] ]["description"] = $value[4]; } //print_r($csv1); $seo_array = array(); if( array_key_exists($url,$csv1) ) { //print_r($csv1[$url]); $seo_array["h1"] = $csv1[$url]["h1"]; $seo_array["title"] = $csv1[$url]["title"]; $seo_array["keyword"] = $csv1[$url]["keyword"]; $seo_array["description"] = $csv1[$url]["description"]; } return $seo_array; } "> setFlags(SplFileObject::READ_CSV); $csv = array(); foreach($file as $line) { $csv[] = $line; } fclose($temp); $file = null; //print_r($csv); $match = parse_url($_SERVER["REQUEST_URI"]); $url = $match["path"]; $csv1 = array(); foreach( $csv as $key => $value ) { if( $key == 0 || $key == "" ) continue; $csv1[ $value[0] ]["h1"] = $value[1]; $csv1[ $value[0] ]["title"] = $value[2]; $csv1[ $value[0] ]["keyword"] = $value[3]; $csv1[ $value[0] ]["description"] = $value[4]; } //print_r($csv1); $seo_array = array(); if( array_key_exists($url,$csv1) ) { //print_r($csv1[$url]); $seo_array["h1"] = $csv1[$url]["h1"]; $seo_array["title"] = $csv1[$url]["title"]; $seo_array["keyword"] = $csv1[$url]["keyword"]; $seo_array["description"] = $csv1[$url]["description"]; } return $seo_array; } "> 未指定 |<? function getSEO() { setlocale(LC_ALL, 'ja_JP.UTF-8'); $data = file_get_contents($_SERVER["DOCUMENT_ROOT"]."/common/inc/csv/meta.csv"); $data = mb_convert_encoding($data, 'UTF-8', 'sjis-win'); $temp = tmpfile(); $meta = stream_get_meta_data($temp); fwrite($temp, $data); rewind($temp); $file = new SplFileObject($meta['uri']); $file->setFlags(SplFileObject::READ_CSV); $csv = array(); foreach($file as $line) { $csv[] = $line; } fclose($temp); $file = null; //print_r($csv); $match = parse_url($_SERVER["REQUEST_URI"]); $url = $match["path"]; $csv1 = array(); foreach( $csv as $key => $value ) { if( $key == 0 || $key == "" ) continue; $csv1[ $value[0] ]["h1"] = $value[1]; $csv1[ $value[0] ]["title"] = $value[2]; $csv1[ $value[0] ]["keyword"] = $value[3]; $csv1[ $value[0] ]["description"] = $value[4]; } //print_r($csv1); $seo_array = array(); if( array_key_exists($url,$csv1) ) { //print_r($csv1[$url]); $seo_array["h1"] = $csv1[$url]["h1"]; $seo_array["title"] = $csv1[$url]["title"]; $seo_array["keyword"] = $csv1[$url]["keyword"]; $seo_array["description"] = $csv1[$url]["description"]; } return $seo_array; }

setFlags(SplFileObject::READ_CSV); $csv = array(); foreach($file as $line) { $csv[] = $line; } fclose($temp); $file = null; //print_r($csv); $match = parse_url($_SERVER["REQUEST_URI"]); $url = $match["path"]; $csv1 = array(); foreach( $csv as $key => $value ) { if( $key == 0 || $key == "" ) continue; $csv1[ $value[0] ]["p"] = $value[1]; $csv1[ $value[0] ]["title"] = $value[2]; $csv1[ $value[0] ]["keyword"] = $value[3]; $csv1[ $value[0] ]["description"] = $value[4]; } //print_r($csv1); $seo_array = array(); if( array_key_exists($url,$csv1) ) { //print_r($csv1[$url]); $seo_array["p"] = $csv1[$url]["p"]; $seo_array["title"] = $csv1[$url]["title"]; $seo_array["keyword"] = $csv1[$url]["keyword"]; $seo_array["description"] = $csv1[$url]["description"]; } return $seo_array; } */ require_once($_SERVER["DOCUMENT_ROOT"]."/common/inc/func_seo.php"); $seo = getSEO(); if( $_GET["p"] == "meta" ) { ?>

Blog

トピックス
  • インタビュー
  • 日記・ブログ
  • 求人案内
  • インスタグラム
  • 問診票

メディカルデンタルクリニック