2018/07 27

PHP DB가 없는 CMS 프로젝트 GRAV

Grav - A Modern Flat-File CMS | Grav Installation | Grav Documentation markdown을 이용한 DB없이 홈페이지CMS 구축 프로젝트 GRAV Installation composer create-project getgrav/grav grav Run php -S localhost:8000 system/router.php http://localhost:8000/ 접속하면 된다. 페이지 추가/수정 Grav 설치위치에서 user/pages/ 폴더에 {숫자.페이지이름} 형식으로 폴더를 추가하면 된다. 폴더에 default.md 파일을 추가하면 자동 랜더링 된다. 폴더에 default.md 파일이 없으면 404에러가 표시된다. 정상적으로 페이지를 추가 했다면 ..

lang/php 2018.07.19

PHP 이용 웹서버 디렉토리 서비스를 더 깔끔하고 편리하게 이용하기

Project-CleverWeb/LastAutoIndex Requirements The ablity to set the directory index 디렉토리 인덱스를 사용할 수 있는 관리자 PHP 5.4 or later Composer Installation composer require projectcleverweb/lastautoindex Setting # Apache Options -Indexes DirectoryIndex index.php index.html index.htm /path/to/LastAutoIndex/index.php # Nginx autoindex off; index index.php index.html index.htm /path/to/LastAutoIndex/index.php..

lang/php 2018.07.18

MySQL, MariaDB 10.2.x Upgrade After /home Restart Error

MariaDB does not start after upgrade when installation directory is inside /home Upgraded to 10.2.8 on Centos 7.4 ibdata error MariaDB /home Restart Error Upgraded to 10.2.x 이상 업그레이드시 ibdata1 권한이 mysql유저 권한이 있는데도 불구하고 Read-only file로 인식 journalctl -xe ... 7월 10 15:39:18 dev mysqld[18378]: 2018-07-10 15:39:18 140486036174976 [ERROR] InnoDB: Operating system error number 30 in a file operation. 7월..

db/mysql 2018.07.14

Summernote WISWIG Editor

Summernote - Super Simple WYSIWYG editor Initialization options 초기화 옵션 Installation Get Summernote에서 다운로드 하거나 github.com/summernote/summernoet Project master.zip을 다운로드 한다. Require HTML5 doctype 이어야 한다. ... Include CSS, JS CDN을 이용해서 설치 가능하다. Enable Hello Summernote Hello Summernote $(document).ready(function() { $('#summernote').summernote(); $('.summernote').summernote(); }); Bootstrap4 Without ..

lang/front 2018.07.12

PHP 상대주소 절대주소변경

[함수] 상대경로를 특정URI 기준의 절대경로로 변환하기 PHP Warning: preg_replace(): The /e modifier is no longer supported PHP >= 7.0.0 : preg_replace /e modifier는 지원되지 않는다. [함수] 상대경로를 특정URI 기준의 절대경로로 변환하기 에서 원래 소스를 확인 할 수 있다. preg_replace to preg_replace_callback function http_src_to_abs($content, $base_uri) { $pattern_a = array("@(\s*href|\s*src)(\s*=\s*'{1})([^']+)('{1})@i" , "@(\s*href|\s*src)(\s*=\s*\"{1})([^\"]+..

lang/php 2018.07.11

PHP 로그, 에러 리포팅 제어

PHP – How to disable error log, display errors and error reporting programmatically 최고의 방법은 php.ini에서 제어하는게 좋다. Apache Web Server Setting error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT display_errors = Off log_errors = On error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT : 모든 종류의 경고를 빼거나 뺄수 있도록 지시. display_errors = Off : 에러 표시해제 log_errors = On : 로컬파일에 에러기록 PHP Setting ini_set('error_repo..

lang/php 2018.07.10

PHP Warning: preg_replace(): The /e modifier is no longer supported

PHP – How to fix the “Warning: preg_replace(): The /e modifier is no longer supported” error in PHP7 well-documented issue in PHP manualphp.net 패턴변경자 Warning: preg_replace(): The /e modifier is no longer supported PHP 5.x에서 PHP7으로 업그레이드 시 발생하는 가장 일반적인 문제들 중 하나. well-documented issue in PHP manual PHP 매뉴얼에서 v5.5 부터 사용되지 않으며(deprecated) v7.0.0에는 지원되지 않은(unsupported)다고 문서에 명시되어 있지만, 과거 레거시 코드를 그대로 ..

lang/php 2018.07.09
반응형