본문 바로가기

전체 글

(720)
개발/javascript
쿠키에 대한 정보 1. 제한 전체갯수 : 300개(RFC 2109) 특정 도메인에서 사용 가능 개수 : 20개 사이즈 : 4096 byte 2. 추가 정보 쿠키와 세션을 같이 사용하는 경우 두 사이즈가 4096 이 넘을 경우에 문제 발생함. 압축 기술도 전송 시 사이즈를 줄이는 기법이므로 쿠키 사이즈와는 상관어 없음. 근거 사이트(RFC 2109) : http://www.ietf.org/rfc/rfc2109.txt 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-spaci.. 2011.12.22
개발/팁
CSS Wishlist @vars { $white:#fff; $base:#000; $back:url(/graphics/background.jpg) top left no-repeat; $font:Helvetica; } /* and used like */ .my-div { background:$back; color:$base; font-family:$font; border:1px solid $white; } 2011.12.21
개발/javascript
Prevent Your CSS and JavaScript Files From Being Cached link href="/stylesheet.css?" rel="stylesheet" type="text/css" /&glt;RENDERS -->link href="/stylesheet.css?1234567890" rel="stylesheet" type="text/css" /&glt;script type="text/javascript" src="/site-script.js?">RENDERS -->script type="text/javascript" src="/site-script.js?1234567890"> 2011.12.21
개발/php
Read PDF and Word DOC Files Using PHP 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-spacing color Background bg-attachment bg-color bg-image bg-position bg-repeat Box width height border-top border-right border-bottom border-left margin padding max-height min-height max-width min-width outline-color outline-styl.. 2011.12.21
개발/php
Send Files via FTP Using PHP $connection = ftp_connect($server); $login = ftp_login($connection, $ftp_user_name, $ftp_user_pass); if (!$connection || !$login) { die('Connection attempt failed!'); } $upload = ftp_put($connection, $dest, $source, $mode); if (!$upload) { echo 'FTP upload failed!'; } ftp_close($connection); 2011.12.21
개발/php
Force A Secure Page Using PHP //force redirect to secure page if($_SERVER['SERVER_PORT'] != '443') { header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit(); } 2011.12.21