개발/php(26)
-
Force Secure (SSL) Pages With .htaccess
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://domain.com/$1 [R,L]
2011.12.21 -
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 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 -
봇 접속시 특정 페이지 보이기
아이피추적결과 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 outl..
2011.12.17 -
외부 이미지 저장 하는 방법 저장 하기 php
외부 이미지 저장 하는 방법 저장 하기 php
2011.12.03 -
Zend
Zend
2011.10.02