통합 일광 욕실 envirement의 varibale에서 PHP
1.download 설치 PHP는 웹 서버 (XAMPP)
삭제 2.의 PHP 경로 (C : \ XAMPP의 \ PHP는)
3.downlaod 및 설치 "\ XAMPP의 \의 PHP \ php.ini를 C"의 주석 및 확장 = php_curl.dll 및 확대 = php_openssl.dll
5.when 작곡가는 작곡가
4.open 파일 (호환성 (을) 변경 프로그램 crasshed 경우) 설치하다 uccesfully (C : \ ProgramData \ Composer \ bin) 사용 가능한 composer.phar 파일이 있거나 composer.phar 파일을 다운로드하십시오.
6.open 명령 프롬프트를 열고 composer.phar 파일 경로로 이동하여 파일 이름 composer.json PHP는 composar.phar 초기화)
#
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.
C:\Users\RKJ>cd C:\ProgramData\Composer\bin
C:\ProgramData\Composer\bin>php composer.phar init
Welcome to the Composer config generator
This command will guide you through creating your composer.json config.
Package name (<vendor>/<name>) [RKJ/bin]: a/b
Description []:
Author:
Minenter code hereimum Stability []:
License []:
Define your dependencies.
Would you like to define your dependencies (require) interactively [yes]? no
Would you like to define your dev dependencies (require-dev) interactively [yes]
? no
{
"name": "a/b",
"require": {
}
}
Do you confirm generation [yes]? yes
은 다음 composer.json 파일 및 업데이트가 "일광 욕실/일광 욕실 '의 feild 필요 편집 :"3.0.0 "
또는 작곡가로 파일 저장. json { "name": "rkj/abc",,는 "필요": { "일광 욕실/일광 욕실을": "3.0.0" } }
5. 파일 추출이 완료 >> PHP는 공급 업체 foler를 설치 composer.phar 경로에 사용할 수
8 당신의 PHP 작업 영역 (C : \ XAMPP \ htdocs를)로 밴더 폴더를 .copy 및 SOLR과 PHP를 통합하기위한 스크립트
<?php
$config = array(
'endpoint' => array(
'localhost' => array(
'host' => 'localhost', 'port' => '8080', 'path' => '/solr/collection1/select?
q=*%3A*&wt=json&indent=true'
)
)
);
// new Solarium Client object
include(__DIR__ . '/vendor/autoload.php');
$client = new Solarium\Client($config);
print('helllo<br>');
$ping = $client->createPing();
// execute the ping query
try{
$result = $client->ping($ping);
echo 'Ping query successful';
echo '<br/><pre>';
var_dump($result->getData());
}catch(Solarium\Exception $e){
echo 'Ping query failed';
}
?>