php 실행 확장자 조작 하기

ubuntu

html, php 확장자가 사용 가능하도록 변경

sudo vi /etc/apache2/mods-enabled/mime.conf

파일에서 AddType application/x-bzip2 .bz2 밑에

AddType application/x-httpd-php .php .jsp .html .htm 등록

아파치 재시작

참조 : https://jbit.bufs.ac.kr/~nicebam/?p=92

확장자 없어도 사용하게 하기

결로 : /etc/apache2/sites-available 사이트세팅 파일에서 추가

참조 : https://jmoon.co.kr/107

PHP7.2XXX 에서 PHP7.3XXX 으로 안전하게 업그레이드 하기

php7.3 will be updated automatically when updates become available. Alternatively you can build php7.3 from source in Ubuntu 18.04, but it will not be updated automatically, and it also takes more than an hour to build if you want to test it too.

[…]

Using Regular Expressions with PHP

소스: Using Regular Expressions with PHP

Regular Expression Will match… foo The string “foo” ^foo “foo” at the start of a string foo$ “foo” at the end of a string ^foo$ “foo” when it is alone on a string [abc] a, b, or c [a-z] Any lowercase letter [^A-Z] Any character that is not a […]

CodeIgniter / EllisLab

CodeIgniter / EllisLab.

PHP: var_dump – Manual

var_dump — Dumps information about a variable

via PHP: var_dump – Manual.

var_dump — Dumps information about a variable

array(3) { [0]=> int(1) [1]=> int(2) [2]=> array(3) { [0]=> string(1) “a” [1]=> string(1) “b” [2]=> string(1) “c” } }