목록php (5)
반업주부의 일상 배움사

컴포저로 GraphQL을 추가해요. composer require webonyx/graphql-php 라우트 설정하고요. $route['graphql'] = '/graphql_ctl'; controllers 폴더에 Graphql_ctl.php를 만들어요.
아래와 같이 결과가 나온다면. object(NeverBounce\Object\VerificationObject)#4 (1) { ["response":protected]=> array(9) { ["status"]=> string(7) "success" ["result"]=> string(7) "invalid" ... 아래와 같이 변환하세요. $reflector = new \ReflectionClass($result); $classProperty = $reflector->getProperty('response'); $classProperty->setAccessible(true); $data = $classProperty->getValue($result); 영어, 중국어 공부중이신가요? 홈스쿨 교재. 한 권으..
PHP 코드 내에서 다른 사이트의 API를 사용해야 하는 경우가 있어요. POST로 호출할 때 사용하면 돼요. $url = 'https://banjubu.com/api/get_some'; $data = ['foo1' => 'var1', 'foo2' => 'var2']; $options = [ 'http' => [ 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data), ] ]; $context = stream_context_create($options); $result = file_get_contents($url, false, $contex..
사이트에 Vue.js를 쓰고 있어요. SSR(서버 사이드 렌더링)은 적용 안 한 상태라 페이스북에서 index.html에 있는 내용만 읽어가다보니 사이트가 렌더링 된 후에 스크립트로 변경하는 것들은 적용이 안 되요. 즉, 페북은 정적 페이지만 읽는다는 뜻이에요. (script 태그 무시) https://developers.facebook.com/tools/debug 공유 디버거 - Facebook for Developers 공유 디버거를 사용하면 Facebook에 공유될 때 콘텐츠가 표시되는 모습을 미리 보거나 오픈 그래프 태그를 사용하여 문제를 디버깅할 수 있습니다. 이 도구를 사용하려면 Facebook에 로그인하세요. � developers.facebook.com 그래서 찾아보니 vue-meta 라는..

영어, 중국어 공부중이신가요? 홈스쿨 교재. 한 권으로 가족 모두 할 수 있어요! 한GLO 미네르바에듀 : 네이버쇼핑 스마트스토어 한글로 영어가 된다?! 한글로[한GLO]는 영어 중국어 일어 러시아어 스페인어가 됩니다!! smartstore.naver.com [JAVA 프로젝트 생성] 인텔리제이 자바 프로젝트 생성. Next. 커맨드 라인 앱 선택. 정보 입력. Main.java package net.yeastudio; public class Main { public static void main(String[] args) { System.out.println("Success!!"); } } [jar 파일 생성] 메뉴 선택. Artifacts 선택 > + 버튼 > JAR > From modules... ..