본문 바로가기

전체 글

(720)
개발/php
Force Secure (SSL) Pages With .htaccess RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://domain.com/$1 [R,L] 2011.12.21
개발/php
PHP Force Download // grab the requested file's name $file_name = $_GET['file']; // make sure it's a file before doing anything! if(is_file($file_name)) { /* Do any processing you'd like here: 1. Increment a counter 2. Do something with the DB 3. Check user permissions 4. Anything you want! */ // required for IE if(ini_get('zlib.output_compression')) { ini_set('zlib.output_compression', 'Off'); } // get the file m.. 2011.12.21
개발/php
PHP Headers and Popular Mime Types Atom header('Content-type: application/atom+xml'); CSS copyheader('Content-type: text/css'); Javascript header('Content-type: text/javascript'); JPEG Image header('Content-type: image/jpeg'); JSON header('Content-type: application/json'); PDF header('Content-type: application/pdf'); RSS header('Content-Type: application/rss+xml; charset=ISO-8859-1'); Text (Plain) header('Content-type: text/plain.. 2011.12.21
개발/서버
Crontab을 이용한 ftp 파일 자동 전송받기 data파일을 특정 디렉토리에 쌓이도록 하고 ftp셀을 이용한다 우선 클라이언트단에서 쉘 작성 =====ftp_file.sh==== #! /bin/ksh . /home1/kbsms/.profile today=`date +"%y%m%d"` { echo user 아이디 패스워드 echo prompt off echo hash echo bi echo mget * } | ftp -n -v ftp서버아이피 & ==================== 작 성된 쉘파일을 Crontab에 등록.. ======Crontab 간단한 설명====== crontab -l : 현재의 crontab 내용을 본다 crontab -e : crontab 편집모드 * * * * * command | | | | | | | | | +--> 요일.. 2011.12.21
개발/서버
VSFTP VSFTP 리눅스에서 사용하는 FTP 서버용 소프트웨어는 proftp, vsftp가 주로 사용됩니다. Proftp에 비해서 속도와 보안, 성능이 뛰어나며 무엇보다 안정성을 보장할 수 있는 프로그램입니다. 설정파일경로 : /etc/vsftpd/vsftpd.conf ① 기본설정 background=YES (기본값 = NO) VsFTP 데몬을 background로 실행할 것인지 설정 합니다. listen=YES (기본값 = NO) VsFTP 데몬은 기본적으로 inetd 모드로 동작이 됩니다. 따라서 독립모드(standalone)로 데몬을 운영하실 거라면 이 옵션과 listen 옵션을 모두 YES로 켜주셔야 됩니다. 반대로 VsFTP 데몬을 inetd 모드로 운영하시려면 이 옵션과 listen 옵션을 비활성화 .. 2011.12.21
news/사회
[ 김정일 사망 ] 김정일 국방위원장 사망으로 '방산株·생필품株' 급등 김정일 북한 국방위원장 사망으로 방산株와 생필품株가 급등하고 있다. 19일 오전1시13분 현재 빅텍과 스페코, 퍼스텍,휴니드가 가격제한폭까지 올랐고, 웰크론이 13%, 풍산 3.27% 등 강세를 보이고 있다. 또한 생수, 라면 등을 생산하는 생필품 관련주도 급등세를 보이고 있다. 농심이 1만1000원(4.35%)오른 25만2500원에, 삼양식품은 3200(7.57%)오른 4만5500원에 거래되고있다. element Font font-family font-size font-style font-variant font-weight letter-spacing line-height text-decoration text-align text-indent text-transform white-space word-spa.. 2011.12.19