일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- 우분투 npm 설치
- 글자 수 제한
- 구글뷰어
- 리사이즈
- .htaccess
- 우분투
- 301 리다이렉트
- 비동기호출
- iframe
- 자바스크립트
- 글자수제한
- 날짜비교
- ip직접접근차단
- 날짜변환
- 디지털 정부서비스ui/ux
- Vanilla JS
- 정부 서비스 가이드라인
- selinux
- 정규식
- virsualhost
- post_type
- 애니메이트
- JavaScript
- 배열
- Ajax
- 페이지전환효과
- MySQL
- 보안인증서
- JS
- SSL
- Today
- Total
목록프로그래밍 (263)
더 나은 프로그래머가 되자
https://www.free-barcode-generator.net/
PHP_EOL 줄바꿈(엔터) 제거시 $text = str_replace(PHP_EOL,'',$text);
도메인을 보면 서브도메인 서비스 형식은 아래와 같다 [*****.naver.com] 이러한 서브도메인에 특정 주소지 또는 IP를 입력하여 리다이렉트 시키거나 포워딩을 할 수 있는데, 문제는 하위폴더는 적용되지 않는다. [cafe.naver.com]이라 할 때 연결되는 포워딩 대상이 [cafe2.naver.com]과 같은 형식이면 무관하나, 하위 디렉토리나 디렉토리내 파일 즉, [cafe2.naver.com/dir] 또는 [cafe2.naver.com/file.html]과 같은 형식은 적용되지 않는다는 것이다. 이러한 문제를 보완하려면 meta소스 또는 자바스크립트를 이용한 리다이렉팅으로 처리하면 되지만, 이는 번거로울 뿐 아니라 index파일의 위치에 따라 안될 수 있다 여기서는 .htaccess를 이용..
기상청 rrs피드 : http://www.weather.go.kr/weather/lifenindustry/sevice_rss.jsp 기상청API 메뉴얼 : http://www.kma.go.kr/images/weather/lifenindustry/timeseries_XML.pdf 기상청API는 위도(latitude), 경도(longitude)로 동내예보를 바로 얻을 수 없다. 자체적으로 나누어놓은 행정구역단위 gridX, gridY라는 좌표를 알아야 한다. 그것을 얻기 위한 방법! 일단 위도,경도로 행정구역명칭을 얻는다. 아래 샘플 URL처럼 GOOGLE API를 사용해도 좋고 다음,네이버것을 이용해도 좋다. http://maps.googleapis.com/maps/api/geocode/json?latln..
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}:501%{REQUEST_URI} [L,R=301] :501은 포트번호이고 기본 443포트일경우 제거
/plugin/editor/smarteditor2/js/service/HuskyEZCreator.js HuskyEZCreator.js 69라인 정도 1 2 3 4 5 6 7 try{ elIFrame = document.createElement(""); }catch(e){ elIFrame = document.createElement("IFRAME"); elIFrame.setAttribute("frameborder", "0"); elIFrame.setAttribute("scrolling", "no"); } 아래와 같이 class="class_smarteditor2" 추가 1 2 3 4 5 6 7 8 try{ elIFrame = document.createElement(''); }catch(e){ elIFra..
일시정지 출처 : https://kunoo.tistory.com/entry/Tip-Youtube-iframe-%EC%9D%B4%EB%B2%A4%ED%8A%B8-%EC%A0%9C%EC%96%B4
if(!isset($_SERVER["HTTPS"])) { header("HTTP/1.1 301 Moved Permanently"); header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); }
preg_match("/]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i", $content, $matches); $matches[0] //img 태그 전체 $matches[1] //img 태그 중 src 값 출처 : https://whiterussian.tistory.com/81