날코딩 중입니다. 정보
날코딩 중입니다.
본문
<?
/////////////////////////////////////
//2011.03.28 최장원 Torrious up_code//
////////////////////////////////////
//환경에 따른 헤더 선언//
header("Content-type: text/html; charset=euc-kr");
header("Last-Modified: ".gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
//헤더선언 여기까지
include("../비밀.php");
include ("../디비.php");
include ("../비밀1.php");
$font_name = substr($font_name,0,-1); //폰트네임 전체를 읽어온다.
$font_name2 = explode(";",$font_name); // 구분자 (;)로 여러개의 폰트 확인
//시리얼 생성 코드 시작 But 여기서는 삭제
//시리얼 생성 코드 종료
foreach($font_name2 as $res){
if ($idx = array_search($res,$out_hg_name)) //font_name2 를 res 로 , 그리고 영문 , 소프트번호, 관리번호를 각각 찾아서 대입
{
$eng_name[] = $out_eng_name[$idx];
$soft_num[] = $out_soft_num[$idx];
$admin_num[] = $out_admin_num[$idx];
}
//배열로 받기 위해 선언 변수 시작
$file[] = $res;
$title2[] = $title;
$user_name2[] = $user_name;
$addr2[] = $addr;
$content2[] = $content;
//배열로 받기 위해 선언 변수 끝
$res."<br>";
}
$goodCnt = count($font_name2); // font_name2 의 갯수를 확인
for($j = 0; $j < $goodCnt; $j++){
$f = fopen('../cc/snnumber.txt','a'); //snnumber.txt 에 기본적인 정보 기입 (차후 연동작업)
fseek($f, 0, SEEK_END);
fwrite($f,"$mem_id|$aa|$file[$j]|$eng_name[$j]|$soft_num[$j]|$admin_num[$j]|$today|\r\n");
fclose($f);
//아까 가져온 배열변수들의 한글 출력을 위해 변환 시작
$file[$j] = iconv("EUC-KR","UTF-8",$file[$j]);
$title2[$j] = iconv("EUC-KR","UTF-8",$title2[$j]);
$user_name2[$j] = iconv("EUC-KR","UTF-8",$user_name2[$j]);
$addr2[$j] = iconv("EUC-KR","UTF-8",$addr2[$j]);
$content2[$j] = iconv("EUC-KR","UTF-8",$content2[$j]);
//배열변수 변환 끝
//DB 에 입력 , 입력 후 DB 닫고 페이지 이동
디비입력 (문제가 될거 같아 심의 삭제)
$res = mysql_query($sql);
query_check($res);
}
mysql_close($con);
echo "<script>window.alert('작성이 완료 되었습니다.');</script>";
echo "<meta http-equiv='refresh' content='0; url=처음페이지>";
?>
그누보드가 가끔 쓰고 싶지만.. 그러면 더 복잡해지기에 그냥 막 날코해서 쓰고 있슴다..
0
댓글 9개








전 ctrl+c ctrl+v 밖에 모른다는 ㅎㅎ
