|
||
0
0
»ÏÀÌ
curlÀº ÁÖ¼Ò°¡ ÀÛÀºµû¿ÈÇ¥·Î ÇÑ°Ç°¡¿ä?
Å«µû¿ÈÇ¥·Î ¹Ù²ã º¸½ÃÁÒ |
0
0
»ÏÀÌ
$x = \"test\";
echo \'value : $x\'; echo \"value : $x\"; À§ ÄÚµå Å×½ºÆ® Çغ¸½Ã¸é Â÷À̸¦ ¾Æ½Ç°Å¿¡¿ä |
0
0
¼ÀÏÈÆ.
°¨»çÇÕ´Ï´Ù. CURLOPT_VERBOSE È°¼ºÈ¿¡ ´ëÇؼ ¾Ë¾Æº¸µµ·Ï ÇÏ°Ú½À´Ï´Ù.
|
0
0
¼ÀÏÈÆ.
value : $x
value : test ÀÇ Â÷ÀÌ°¡ »ý±â³×¿ä/./ |
0
0
»ÏÀÌ
ÀÛÀº µû¿ÈÇ¥À϶§´Â
https://kr.api.pvp.net/api/lol/kr/v1.4/summoner/by-name/$player[0]?api_key=299da9a2-0ae2-4221-9db9-78efda7e543d Å« µû¿ÈÇ¥À϶§´Â https://kr.api.pvp.net/api/lol/kr/v1.4/summoner/by-name/%EC%84%9C%EC%9D%BC%ED%9B%88?api_key=299da9a2-0ae2-4221-9db9-78efda7e543d ¸¦ È£Ãâ ÇßÀ» °Å¿¡¿ä. ÇØ´ç api È£ÃâÇغ¸´Ï ACL°°Àº ¹®Á¦´Â ¾ø¾îº¸ÀÌ°í json decode ÈÄ id¸¸ È®ÀÎÇØ º¸½Å°Å¶ó¸é curl °á°ú°ª ÀÌ ¾î¶²Áö º¸½Ã¸é µµ¿òÀÌ µÉ°Í °°½À´Ï´Ù. var_dump·Î $a ¸¦ Çѹø Âï¾îº¸¼¼¿ä :) |
0
0
¼ÀÏÈÆ.
$player[0] = \"¼ÀÏÈÆ\";
$apiurl=\"https://kr.api.pvp.net/api/lol/kr/v1.4/summoner/by-name/$player[0]?api_key=299da9a2-0ae2-4221-9db9-78efda7e543d\"; $ch = curl_init($apiurl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($ch); curl_close($ch); $json = json_decode($data,true); var_dump($json); °á°ú·Î NULL ¸¸ ³ª¿À³×¿ä.. ¸î½Ã°£Â° ÀÌ°ÅÇϳª¿¡ ¸·Èù.. |
0
0
¼ÀÏÈÆ.
ÀÌ·² ¼ö°¡... localhost·Î Á¦ ¼¹ö¿¡¼´Â ½ÇÇàÀÌ ¾ÈµÇ´ø°Ô;
È£½ºÆü¹ö¿¡ ¿Ã·Á¼ ½ÇÇàÀ» ÇÏ´Ï±î µÇ³×¿ä.. 4½Ã°£ÀÌ °øÁß ºÐÇصǾú³×¿ä!! |
|
|
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û | ¸ñ·Ïº¸±â |
$w = curl_init(\'https://kr.api.pvp.net/api/lol/kr/v1.4/summoner/by-name/$player[0]?api_key=299da9a2-0ae2-4221-9db9-78efda7e543d\');
$weather_options = array(
CURLOPT_HEADER => false,
CURLOPT_RETURNTRANSFER => true
);
curl_setopt_array($w, $weather_options);
$a = curl_exec($w);
curl_close($w);
$json = json_decode($a,true);
$lolid = $json->$player[0]->id;
echo \"$lolid\";
/*
$player[0] = \"¼ÀÏÈÆ\";
$apiurl=\"https://kr.api.pvp.net/api/lol/kr/v1.4/summoner/by-name/$player[0]?api_key=299da9a2-0ae2-4221-9db9-78efda7e543d\";
$data=file_get_contents($apiurl);
$json = json_decode($data,TRUE);
$user_name= $json[$player[0]][\'name\'];
$user_id= $json[$player[0]][\'id\'];
echo \"$user_id\";
*/