개발

[PHP] URL 파일 불필요한 정보 삭제

<?php /* URL파일에서 불필요한 라인을 삭제한다. 사용방법: php url_remove_superfluous_info.php "D:\settings\config\favorites\10_my favorites\netflix.url" */ $fp = fopen($argv[1], "r") or die($argv[1] . "Unable to open file! (read)"); $ii = 0; while (!feof($fp)) { $oneline = fgets($fp); $read_str[$ii] = str_replace(array( "\n", "\t", "\r" ) , '', $oneline); $ii++; } fclose($fp); echo $argv[1] . "\n"; $fp = fopen($argv[1], "w") or

[PHP] URL 파일 불필요한 정보 삭제 더 읽기"

[PHP] 소스파일들을 Phar로 묶기

<?php // php.ini에서 phar.readonly = Off 로 설정 후 사용 try { $pharFile = ‘countrycurrency.phar’; // clean up if (file_exists($pharFile)) { unlink($pharFile); } if (file_exists($pharFile . ‘.gz’)) { unlink($pharFile . ‘.gz’); } // create phar $phar = new Phar($pharFile); // start buffering. Mandatory to modify stub to add shebang $phar->startBuffering(); // Create the default stub

[PHP] 소스파일들을 Phar로 묶기 더 읽기"

roundcube 웹메일 설정

■ .htaccess 파일 삭제 ■ http://10.10.10.1/installer ■ ./config/config.inc.php에서 수정할 부분// DB 접속 정보$config[‘db_dsnw’] = ‘mysql://u_roundcube:<DB비밀번호>@localhost/db_roundcube’; // 도메인 주소$config[‘default_host’] = ‘esvali.com’; // 로그인 화면에 표시될 사이트명$config[‘product_name’] = ‘(주)우리회사 웹메일’; // 한번에 표시할 메일 수$config[‘mail_pagesize’] = 300; ■ ./config/config/defaults.inc.php에서 수정할 부분$config[‘log_date_format’] = ‘Y-M-d H:i:s O’; // IMAP 정보$config[‘default_host’] = ‘localhost’;// TCP port used for IMAP connections$config[‘default_port’] =

roundcube 웹메일 설정 더 읽기"

git 자료 정리

출처: https://github.com/jeonghwan-kim/git-usage 구조코드는 아래 세 단계에 걸쳐 저장된다. 스테이징 -> 커밋 -> 원격저장소 git add {파일명} 으로 파일을 스테이징 상태에 넣는다.git commit 으로 스테이징 상태에 있는 모든 변경사항을 커밋한다. 여기까지가 로컬에서의 작업git push 로 커밋된 저장소를 원격 저장소로 밀어넣는다. 기본 명령어 저장소 생성 git init원격 저장소로부터 복제 git clone {url}변경 사항 체크 git status //특정

git 자료 정리 더 읽기"

Markdown(마크다운)

출처: https://gist.github.com/ihoneymon/652be052a0727ad59601 1.1. 마크다운이란? Markdown은 텍스트 기반의 마크업언어로 2004년 존그루버에 의해 만들어졌으며 쉽게 쓰고 읽을 수 있으며 HTML로 변환이 가능하다. 특수기호와 문자를 이용한 매우 간단한 구조의 문법을 사용하여 웹에서도 보다 빠르게 컨텐츠를 작성하고 보다 직관적으로 인식할 수 있다. 마크다운이 최근 각광받기 시작한 이유는 깃헙(https://github.com) 덕분이다. 깃헙의 저장소Repository에 관한 정보를 기록하는 README.md는 깃헙을 사용하는 사람이라면 누구나

Markdown(마크다운) 더 읽기"

[WordPress] 워드프레스 설치 후 설정 정리

필수 Plug-in 설치 Classic Editor (https://ko.wordpress.org/plugins/classic-editor/)TinyMCE Advanced (https://ko.wordpress.org/plugins/tinymce-advanced/)Code Snippets (https://ko.wordpress.org/plugins/code-snippets/)Enlighter-Customizable Syntax Highlighter (https://ko.wordpress.org/plugins/enlighter/) 테마 설치 및 설정① generatepress 테마 설치② 테마 디자인 > 사용자 정의하기 > 추가 CSS 3. Snippets Plug-in 추가 ① tinyMCE 폰트 추가 ② 스마트 따옴표 비활성화 4. 자주쓰는 SQL

[WordPress] 워드프레스 설치 후 설정 정리 더 읽기"

위로 스크롤