본문 바로가기

분류 전체보기

(29)
(함수) shuffle() & str_shuffle() - 랜덤함수 랜덤1 : shuffle() function random_password_1($cnt) { $word_en = "a,b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z"; $word_no = "1,2,3,4,5,6,7,8,9,0"; $word = $word_en.",".$word_no; $array=explode(",",$word); shuffle($array); $newstring = implode($array,""); return substr($newstring, 0, $cnt); } echo random_password_1('5'); 랜덤2 : str_shuffle() function random_password_2($cnt) { $word = 'abcefghijk..
폰갭 설치법 폰갭 설치법 [폰갭이란] HTML, CSS, Javascript로 작성된 모바일웹을 어플리게이션으로 바꾸어주는 도구 [설치방법] 1. node.js 설치 (nodejs.org)2. node.js 선택 ==> Terminal 실행3. Terminal이 열리면, 바로 다음과 같이 입력을 하고, 실행> sudo npm install -g phonegap4. 설치 완료5. 테스트Terminal에서> phonegap create hello 실행* hello / (merges, platforms, plugins, www)
( HTML5) 현재 사용하는 브라우져의 HTML5 지원 여부 확인 현재 사용하는 브라우져의 HTML5 지원 여부 확인 www.html5test.com
(jQuery) Multi Selectbox jQuery Multi Selectbox 카테고리1 해외여행 허니문 카테고리2 카테고리3 jQuery Multi Selectbox Preview 카테고리1 해외여행 허니문 카테고리2 카테고리3
(함수-정규식) preg_match() - 에디터 콘텐츠 이미지찾기 * 적용함수 * preg_match_all() * preg_match() * getimagesize() * filesize() function appImages($text){ global $_fileDir; global $_fileUrl; $img1 = array(); $img_cnt = preg_match_all("/]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i", $text, $match); //이미지파일 html 추출 if($img_cnt > 0) { for ($i=0; $i 1){ for($i=0; $i
*Using MySQL Stored Procedures Using MySQL Stored Procedures with PHP mysql/mysqli/pdo http://www.joeyrivera.com/2009/using-mysql-stored-procedures-with-php-mysqlmysqlipdo/ Wondering how to use stored procedures with PHP and MySQL? So was I and here’s what I’ve learned. In this tutorial I’ll explain how to use PHP (I’m using 5.2.6) to call MySQL (I’m using 5.0.2) stored procedures using the following database extensions:MySQL..
mysql date (dev.mysql.com) 12.7. Date and Time Functions 12.7. Date and Time FunctionsThis section describes the functions that can be used to manipulate temporal values. See Section 11.3, “Date and Time Types”, for a description of the range of values each date and time type has and the valid formats in which values may be specified.Table 12.13. Date/Time FunctionsNameDescriptionADDDATE()Add time values (intervals) to a date valueADDTIME()Add timeCON..
DataBase 복구하기-mydqlbinlog 1. 백업파일을 변환한다. mydqlbinlog aaa.000 > 000.sql 2. 필요한 부분만 추출 예) 변환된 000.sql 에서 특정문자 포함한 쿼리문 추출grep "update" 000.sql > 000_update.sqlgrep "member" 000_update.sql > 000_update_member.sql