일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- euc-kr
- readonly
- javascript
- println
- PHP GCM
- 무선랜카드
- lsusb
- include
- XMLHTTP
- form
- disabled
- ASP
- SQL Injection
- jquery 레이어
- 크로스 컴파일
- submit
- AC1300
- RTL88x2BU
- DS718+
- FileSystemObject
- 시놀로지
- Injection
- ajax
- Getrows
- utf-8
- 커널
- jQuery
- replace
- synology
- 따라다니는 배너
- Today
- Total
목록PHP GCM (2)
아는 것이 좋은 것이다.
$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..
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 ..