PHP

List of all locales

List of all locales Locale Language Country af_NA Afrikaans Namibia af_ZA Afrikaans South Africa ak Akan ak_GH Akan Ghana sq_AL Albanian Albania sq_XK Albanian Kosovo sq_MK Albanian Macedonia am_ET Amharic …

List of all locales Read More »

nginx에서 php 확장자 제거하기

nginx에서 php 확장자 제거하기 Edit /etc/nginx/sites-available/default.conf server { … location / { try_files $uri $uri/ $uri.html $uri.php$is_args$args; } location ~ \.php$ { try_files $uri =404; } … } Reference https://stackoverflow.com/questions/21911297/how-to-remove-both-php-and-html-extensions-from-url-using-nginx …

nginx에서 php 확장자 제거하기 Read More »

부가가치세 계산하기

부가가치세 계산하기 Javascript var totalAmount = 10000; var totalVat = Math.round(totalAmount-(totalAmount/1.1)); var totalPrice = Number(totalAmount – totalVat); var totalPriceWon = totalAmount.toString().format(); var totalPriceVat = totalVat.toString().format(); PHP $totalAmount = 10000; $totalVat …

부가가치세 계산하기 Read More »

아마존 라이트세일에서 비트나미 IonCube 설치

아마존 라이트세일에서 비트나미 IonCube 설치 IonCube Download wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz tar xvzf ioncube_loaders_lin_x86-64.tar.gz sudo cp ioncube/ioncube_loader_lin_7.4.so /opt/bitnami/php/lib/php/extensions/ https://docs.bitnami.com/aws/apps/silverstripe/configuration/install-modules-php/#ioncube IonCube Configure Edit php.ini zend_extension = /opt/bitnami/php/lib/php/extensions/ioncube_loader_lin_7.4.so Restart Server sudo /opt/bitnami/ctlscript.sh restart Reference …

아마존 라이트세일에서 비트나미 IonCube 설치 Read More »

우분투에서 phpmyadmin 설치하기

우분투에서 phpmyadmin 설치하기 Installation Download: $ cd /var/www/example.com/public_html/ $ wget https://files.phpmyadmin.net/phpMyAdmin/4.8.3/phpMyAdmin-4.8.3-all-languages.zip $ unzip phpMyAdmin-4.8.3-all-languages.zip $ mv phpMyAdmin-4.8.3-all-languages mydbadmin $ rm phpMyAdmin-4.8.3-all-languages.zip http://YOUR_IP_ADDRESS/mydbadmin Install apt -y install phpmyadmin Configure $ sudo …

우분투에서 phpmyadmin 설치하기 Read More »

PHP에서 웹 크롤러 만들기

PHP에서 웹 크롤러 만들기 $ch=curl_init(); //initialize curl curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set curl to return the data instead of printing it to the browser. curl_setopt($ch, CURLOPT_URL, “http://google.com/”); $data …

PHP에서 웹 크롤러 만들기 Read More »

Scroll to Top