1/2 페이지 열람 중
function ar_get_hashtags($string) { $arr=array(); $arr_tr=explode(" ","? * @ $ % = + [ ] ' \" \\ : , | | / ~ { } & 【 】 [ ] \t"); $string=trim(str_replace($arr_tr,' ',$string)); $string=trim(str_replace($arr_tr,' ',$string)); $string=trim(str_replace(' ',' ',$string));…
imagick 라이브리가 필요하다. apt-get install php-imagick 설치확인 php -m | grep imagick service apache2 restart 예) chat_thumbnail($_FILES['upfile']['tmp_name'], $thumb_file, 60, 60); function chat_thumbnail($source_file, $thumb_file, $thumb_width, $thumb_height) { $is_crop=true; $crop_mode='center'; $…
[비밀글 입니다.]
Creating Google OAuth API Keys and Developer KeyGoogle API lets you play with the core of Google system, by building queries, a client can access required data from various Google services, which can be used to build all types of Google based applications. Before sending API queries, a client appli…
class Letter{ private $subject; private $message; private $addHeaders; private $charset; function __construct( $subject, $message, $fromEmail = null, $fromName = null, $charset = 'utf-8') { $this->charset = $charset; $this->subject = "=?$charset?b?" . base64_encode($…
ipfmIP Flow Meter (IPFM) is a bandwidth analysis tool, that measures how much bandwidth specified hosts use on their Internet link.Current Stable Version :- 0.11.5Install ipfm in Ubuntusudo apt-get install ipfmThis will complete the installationNow if you want to configure this for your network you …
and, or 등의 검색식을 지원하는 검색엔진 함수호출은 아래와 같이 해주시면 됩니다.$array = make_where (A, B, C, D)A : 검색어의 공백을 대체할 연산자 (and | or)B : 검색 할 컬럼 이름 (,으로 연결)C : 검색어D : 검색어/부정어 선택 (1 : 부정어, 0 : 검색어)리턴되는 $array라는 배열에는 다음과 같은 값이 저장됩니다.$array[where] : Where절의 내용$array[word] : 검색에 사용된 검색어 (공백으로 연결)예)$result = make_where ("…
bandwidth// bandwidth.php <?php ## ## [PHP/bandwidth] check network interface bandwidth ## by 'Chilbong, Kim' san2(at)linuxchannel.net ## ## changes : ## - 2002.10.15 (ver 0.3) : php class modified ## - 2002.09.05 (ver 0.2) : support FreeBSD ## - 2002.09.04 (ver 0.1) : sup…
예) SELECT * FROM hw where seq > 50 and substring(username,1,2) = '김' ORDER BY rand( ) LIMIT 2 위의 예제와 같이 where절을 이용하여 원하는 부분의 무작위 착출이 가능하다!
mysql> select * from [테이블] order by rand()mysql> select BABO from TABLE123 order by rand() limit 1 이 함수를 이용하면 결과값이 랜덤으로 정렬되어 반환됩니다.만약 limit를 사용해서 1개를 뽑는다면 완전한 랜덤함수와 다를바가 없습니다. 커맨드2는 TABLE123에서 BABO컬럼을 한개만 랜덤으로 가져오는 명령입니다.