일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- disabled
- javascript
- ASP
- jQuery
- 크로스 컴파일
- 따라다니는 배너
- PHP GCM
- 무선랜카드
- Injection
- 커널
- include
- form
- ajax
- FileSystemObject
- euc-kr
- RTL88x2BU
- XMLHTTP
- jquery 레이어
- AC1300
- readonly
- submit
- DS718+
- lsusb
- SQL Injection
- Getrows
- println
- utf-8
- 시놀로지
- synology
- replace
- Today
- Total
목록PHP (15)
아는 것이 좋은 것이다.
//$exec = "javac HelloWorld.java"; // 자바 컴파일 명령어$exec = "java HelloWorld"; // 컴파일된 class 실행 명령어$output = shell_exec($exec); // 커맨드에 명령어 실행echo $output; // 출력 된 로그 출력 (에러는 출력이 안됨 - 확인 필요), 자바 말고도 다른 명령어도 가능한듯....
$year = date("Y"); 위와 같이 사용시 아래의 에러를 보는 경우가 있다. (PHP 신규 설치 및 설정 문제) Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. 이와 같은 에러의 원인은 timezone 설정이 안..
mb_convert_encoding("변경할 데이터", "euc-kr", "utf-8") // 인코딩타입을 변환하여 깨짐 방지
$arr = array('a'=>array('1', '2'), 'b' => array('3', '4'));print_r($arr);$arr['test'] = array("test"=>"value");print_r($arr);?>
$arr = get_defined_vars();//print_r(array_keys(get_defined_vars()));foreach ( $arr as $Name => $value ){if(){echo $name." : ";print_r($value);echo " ";}else{echo $Name." : ".$value." ";}}
1.루트권한sudo a2enmod rewrite 2./etc/apache2/apache2.conf rewriteEngine On 3./etc/apache2/sites-enabled/000-default 수정 AllowOverride All (기본값 done, All로 설정해야 사용가능) Order allow,deny Allow from all 4. 코드이그나이터 최상위 루트에 .htaccess 파일 수정 혹은 없을시 생성 RewriteEngine OnRewriteBase /RewriteCond $1 !^(index\.php|images|captcha|data|include|uploads|robots\.txt)RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUE..
//echo $this->db->last_query(); //exit;
$reg_id = $_REQUEST['regid'];$headers = array('Content-Type:application/json','Authorization:key=API키값');//$temp_id = $_POST['id'];$temp_msg = "메시지 테스트";//$myServer = "localhost,포트(기본적으로 mssql은 1433을 씀)";//$myUser = "아이디";//$myPass = "비밀번호";//$myDB = "DB명";//$db = mssql_connect($myServer, $myUser, $myPass) or die ("서버 연결 실패");//mssql_select_db($myDB,$db) or die ("DB 연결 실패");//$result=mssql_query..
$array = array("name"=>"이름", "id"=>"아이디", "email"=>"이메일");echo "isArray=".$array."";foreach($array as $key=>$value){ echo $key . " : " . $value . "";}//출력//isArray=Array//name : 이름//id : 아이디//email : 이메일echo "";foreach($array as $val){ echo $val."";}//출력//이름//아이디//이메일echo "";print_r($array);// 현재 배열의 상태를 보여준다?>
function sendGCM(){ // Replace with the real server API key from Google APIs $apiKey = ""; //구글에서 발급받은 API키값 $regid = $_REQUEST['regid']; // 디바이스 키값 // Replace with the real client registration IDs $registrationIDs = array( $regid ); // Message to be sent $message = iconv("EUC-KR", "UTF-8", "한글 테스트 TEST!!"); //보낼 메시지 // Set POST variables $url = 'https://android.googleapis.com/gcm/send'; //GCM ..