전체 글
-
windows에서 php에 curl 확장 시 주의php 2023. 8. 10. 19:51
PHP 폴더 current에 있는 libssh2,dll 을 어파치의 bin에 넣어야한다.
-
codeigniter 프로젝트 생성php 2023. 8. 9. 17:12
1. codeigniter 다운로드 https://packagist.org/ =8.2"" data-og-host="packagist.org" data-og-source-url="https://packagist.org/" data-og-url="https://packagist.org/" data-og-image=""> Packagist Define Your Package Put a file named composer.json at the root of your package's repository, containing this information: { "name": "your-vendor-name/package-name", "description": "A short description of what y..
-
php의 Composer 활용하기php 2023. 8. 9. 17:03
1. composer가 다운받아져 있는지 확인할 수 있다. 2. composer가 다운로드 되어있다면, composer를 생성하고싶은 폴더에서 다음의 명령어를 실행한다. - 이용하고자 하는 확장 프로그램 (라이브러리)을 입력하고 버전 및 사용자 이름, 도메인 주소를 입력하면 composer.json 파일을 얻을 수 있고 - 이어서 설정된 dependencies를 설치하면 dependencies를 활용할 수 있게 설치된 composer.lock 파일이 생성된다. - 설치한 symfony의 var-dumper를 사용하면 다음과 같이 객체가 저장되어있는 변수를 편하게 볼 수 있다 ** 라이브러리를 활용하려면 파일의 최 상단에 다음과 같이 require을 선언해야한다. __DIR__는 현재 경로를 뜻함
-
스크래핑 기초기타 2023. 8. 9. 16:44
1. Request와 Response - 스크래핑 하고자하는 페이지에 들어가면, 페이지에서는 필요한 정보를 여러가지 url로 부터 불러온다. 우리는 개발자 도구의 Network탭에서 해당 요소들을 확인할 수 있다. - 왼쪽에서 특정 Name을 선택하고 Response탭을 확인하면, 어떤 형태의 데이터가 해당 페이지로 불러와지는지 알 수 있다. - 해당 데이터들이 필요한 데이터라면, PostMan에서 해당 Url을 보내고 Response를 받아서 데이터를 활용할 수 있다. 2. PostMan - 원하는 정보를 Response 해주는 Url를 넣으면 데이터를 얻을 수 있다 - 위의 그림과 같이 Unauthorized가 발생한다면, Headers의 Authorizatioin과 Cookie의 정보를 활용해서 권..
-
php 기본 문법 2php 2023. 8. 9. 16:28
1. 변수 타입 - 일반 변수 - 특수 변수 // array $arr_int_values = [1, 2, 3, 666]; // array but map $map_values = [ 'name' => '선현민', 'position' => '책임' ]; // array in array $employees = [ [ 'name' => '선현민', 'position' => '책임' ], [ 'name' => '홍종무', 'position' => '매니저' ], [ 'name' => '이서영', 'position' => '매니저' ], ]; 2. 변수 출력 - 일반 변수 출력 // 일반형 // 요약형 - 배열 변수 출력 // 일반 배열 출력 (index) // 키 값이 있는 배열 출력
-