php echo xml 형식으로 출력
Remark : 웹화면에 XML 형식으로 나오기 하기 소스상에 echo 내용에 단지 xml 형식만 있어야 아래와 같이 출력.
Remark : 웹화면에 XML 형식으로 나오기 하기 소스상에 echo 내용에 단지 xml 형식만 있어야 아래와 같이 출력.
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 사이트세팅 파일에서 추가
1 2 3 4 5 6 7 8 9 10 |
<Directory "/var/www/data/"> Options FollowSymLinks AddType application/x-httpd-php .php .jsp AllowOverride None Order Deny,Allow Allow from all Require all granted </Directory> |
참조 : https://jmoon.co.kr/107
1 2 3 4 5 |
sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php7.3 |
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.
1 2 3 |
apt-cache search php7.3 | grep php7.3 |
1 2 3 |
sudo apt install php7.3-common php7.3-mysql php7.3-xml php7.3-xmlrpc php7.3-curl php7.3-gd php7.3-imagick php7.3-cli php7.3-dev php7.3-imap php7.3-mbstring php7.3-opcache php7.3-soap php7.3-zip php7.3-intl -y |
1 2 3 |
update-alternatives --set php /usr/bin/php7.3 |
1 2 3 |
a2dismod php7.2 |
1 2 3 |
a2enmod php7.3 |
1 2 3 |
systemctl restart apache2 |
참조 : https://forum.yiiframework.com/t/yii-1-1-21-and-php-7-2-19-issues/126343
소스: 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 uppercase… Read More »
CodeIgniter / EllisLab.
-체크 http://localhost/index.php 잘 실행되면 C://www.xampp/apache/conf/httpd.conf 파일중 1) rewrite module을 로딩하는가 확인 LoadModule rewrite_module modules/mod_rewrite.so 주석 해제되었는지 확인. 2) Options FollowSymLinks AllowOverride None Order deny,allow Deny from all “AllowOverride None” 이라고 된 부분을 찾아서 “AllowOverride All” 이라고 수정 3) 아파치 재시작! => 적용안됨.
서비스에서 Web Deployment Agent Service 중지
php : Thread Safe 와 Non Thread Safe 차이점 VC6 : Apache 용 VC9 : IIS 용 [Thread Safe 와 Non Thread Safe] 우선 윈도우용 PHP는 항상 Thread Safe 버전으로 나왔었습니다. 이유는 윈도우가 멀티쓰레드 방식인데 PHP 는 멀티프로세스 방식으로 개발 되었기 때문이죠. 참고로 리눅스나 유닉스는 원래 멀티프로세스 방식이었기에 문제가 되지 않았습니다. PHP를 IIS와 연동하기 위해… Read More »