PHP 짧은 태그 변경 프로그램
PHP 파일에서 짧은 태그(<?) 를 긴 태그(<?php) 로 변경하는 프로그램입니다. 변경된 파일인 경우 원본 파일은 확장자에 .bak 를 추가합니다. <?=$hello?> 는 <?php echo $hello; ?> 로 변경됩니다. 옵션(-s) 를 사용하면 <?= 는 변경하지 않습니다. 현재 UTF-8 형식만 지원합니다. 사용방법 다운로드 관련링크 소스 :…
PHP 파일에서 짧은 태그(<?) 를 긴 태그(<?php) 로 변경하는 프로그램입니다. 변경된 파일인 경우 원본 파일은 확장자에 .bak 를 추가합니다. <?=$hello?> 는 <?php echo $hello; ?> 로 변경됩니다. 옵션(-s) 를 사용하면 <?= 는 변경하지 않습니다. 현재 UTF-8 형식만 지원합니다. 사용방법 다운로드 관련링크 소스 :…
This uses the geolocation function to get the user’s location. If permission is denied or the browser does not support geolocation, it uses the Naver API to determine the location from the IP address. Before using this, get an API…
When using an Amazon server, retrieving the server IP returns the private IP address. So I made this to get the public IP address. <? if(in_array(substr($_SERVER[‘SERVER_ADDR’], 0, 3), array(‘172’))) if(strrpos(gethostname(), ‘.compute.internal’)!==false) $_SERVER[‘SERVER_ADDR’] = file_get_contents(‘http://169.254.169.254/latest/meta-data/public-ipv4’); echo $_SERVER[‘SERVER_ADDR’]; ?>
Installation environment: CentOS 7 default, PHP 7 yum install gcc-c++ java-1.7.0-openjdk-devel python-devel zlib-devel openssl openssl-devel git -y wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz tar xf Python-3.* cd Python-3.* ./configure make make altinstall pip3.6 install JPype1-py3 pip3.6 install konlpy cd .. wget https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.2.tar.gz tar zxfv…
We created this tool to monitor whether malicious PHP has been installed through server hacking and to easily check for potentially dangerous code. Write the following code and upload it to your server account. [php] &lt;? /** * Name: Kilho’s…
For testing OpenAPI and checking whether the connection information is correct Method, host, and POST values on connection [PHP] <? $log = $_SERVER[‘REQUEST_METHOD’].’ ‘.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’].”nn”; foreach($_SERVER as $k => $v) { if($k==’HTTP_HOST’) continue; if(substr($k, 0,5)!=’HTTP_’) continue; $log .= ‘$k: $v’.”n”; }…