|
|
Programming/CheatSheet 2008/04/24 01:34
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/58
Google 2008/04/21 14:43
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/55
Google 2008/04/21 12:20
최근에 어느정도 안정된 모습을 보이는거 같구 이쁘기도 하네. Before After Before After 인스톨 방법
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/54
PHP/PEAR 2008/04/20 14:49
allow_url_fopen 설정값이 off 로 설정되어있을때 rss 파싱을 못하는 문제점때문에 이리저리 사용할 라이브러리 파일을 검색하다가 찾아낸 클래스 파일. allow_url_fopen = on 일경우 pear 의 XML_RSS ( XML_Parser 의존성 모듈) 모듈을 사용하여 파싱할 수 있지만 off 일경우 ( http://pear.php.net/manual/en/package.xml.xml-rss.requirements.php) rss 파일을 읽어들일 수 없음. 해결책으로 직접 PHP 의 fsockopen 을 구워 삶아서 구현 하거나 , 공개 라이브러리 찾아볼것. - snoopy
http://snoopy.sourceforge.net 사이트에 설명된 내용으로 snoopy 는 웹브라우저 시뮬레이터이며 페이지 내용 , 폼내용등의 값을 취득함 이라고...
기본 사용방법
require_once 'Snoopy.class.php';
$awsUrl = 'http://breakpoint.tistory.com';
$objSnoopy = new Snoopy; $objSnoopy->fetch($awsUrl);
$awsBuff = $objSnoopy->results; require_once "XML/RSS.php";
$rss =& new XML_RSS($awsBuff); $rss->parse();
- HTTP_Request
pear 의 HTTP_Request 를 사용.
include('HTTP/Request.php'); $req = &new HTTP_Request('http://breakpoint.tistory.com/rss'); $req->setMethod(HTTP_REQUEST_METHOD_POST); $req->sendRequest(); $response1 = $req->getResponseBody(); require_once "XML/RSS.php";
$rss =& new XML_RSS($awsBuff); $rss->parse();
위의 방법이 있음.
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/52
Database/MySQL 2008/04/20 02:56
- 비스타에서 작업 , 확인
- 5.1.X 버젼
참고 : http://dev.mysql.com/doc/refman/5.1/en/windows-installation.html http://dev.mysql.com/doc/refman/5.1/ja/windows-installation.html
- 인스톨 없는 압축파일로 설치
- 다운로드
http://dev.mysql.com/downloads/mysql/5.1.html
- 다운로드받은 파일을 압축파일을 임의의 디렉토리에 풀기
c:\dev\mysql
- 옵션 파일 작성
MySQL 은 서버가 기동하면서 2개의 옵션 파일을 검색. c:\Windows\my.ini 그리고 c:\my.cnf
여기서는 c:\my.cnf 를 사용함
[mysqld] basedir=c:\\dev\\mysql datadir=c:\\dev\\mysql\\data 추가
참고: http://dev.mysql.com/doc/refman/5.1/ja/option-files.html
- 서버타입 선택
참고 : http://dev.mysql.com/doc/refman/5.1/ja/windows-select-server.html
- 서버 기동
c:\dev\mysql\bin>c:\dev\mysql\bin\mysqld --console InnoDB: The first specified data file .\ibdata1 did not exist: InnoDB: a new database to be created! 080420 2:45:40 InnoDB: Setting file .\ibdata1 size to 10 MB InnoDB: Database physically writes the file full: wait... 080420 2:45:41 InnoDB: Log file .\ib_logfile0 did not exist: new to be created InnoDB: Setting log file .\ib_logfile0 size to 5 MB InnoDB: Database physically writes the file full: wait... 080420 2:45:42 InnoDB: Log file .\ib_logfile1 did not exist: new to be created InnoDB: Setting log file .\ib_logfile1 size to 5 MB InnoDB: Database physically writes the file full: wait... InnoDB: Doublewrite buffer not found: creating new InnoDB: Doublewrite buffer created InnoDB: Creating foreign key constraint system tables InnoDB: Foreign key constraint system tables created 080420 2:45:43 InnoDB: Started; log sequence number 0 0 080420 2:45:44 [Note] Event Scheduler: Loaded 0 events 080420 2:45:44 [Note] c:\dev\mysql\bin\mysqld: ready for connections. Version: '5.1.24-rc-community-log' socket: '' port: 3306 MySQL Community Server (GPL) --console 옵션을 삭제하면 데이터 디렉토리에 에러로그 생성함.
서버 정지
c:\dev\mysql\bin>c:\dev\mysql\bin\mysqladmin -u root shutdown 080420 2:50:37 [Note] Event Scheduler: Purging the queue. 0 events 080420 2:50:37 InnoDB: Starting shutdown... 080420 2:50:38 InnoDB: Shutdown completed; log sequence number 0 46409 080420 2:50:38 [Note] c:\dev\mysql\bin\mysqld: Shutdown complete
- 기본 유저 어카운트 확보
- 기본 패키지 인스톨 (공식 매뉴얼에서 추천하는 인스톨 방법)
- 다운로드
http://dev.mysql.com/downloads/mysql/5.1.html
- 인스톨 개시. 다운로드 한 파일 실행.
- Custom Type 선택
- 인스톨 디렉토리 선택
- 인스톨 시작
- 서버 설정
- 설정 타입 선택 (상세 설정 선택)
- 서버 타입 선택 (개발 환경용이기에 Developer Machine 선택)
- 데이터베이스 용도 선택
- InnoDB 용 드라이버 선택
- 서버에 동시컨넥션 규모 선택
- 네트워킹 옵션 선택
- 캐릭터 셋 선택 (매뉴얼로 UTF8 선택)
- 서비스 명을 MySQL51 로 선택. 다른 버젼을 설치할지도 모르기에...
PATH 지정 체크 선택
- Modify Security Settings 체크 해제. 나중에 수동으로 설정.
- 설정 끝
- 패키지 설치 참고
2008/04/18 - [Programming/Server] - 개발환경구축 > 패키지 설치
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/50
Database/MySQL 2008/04/20 02:10
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/49
PHP/Install 2008/04/19 01:32
- 기본 5.X 대 버젼을 기준으로 설명 , 아파치모듈로서 PHP 사용
- 인스톨러를 이용한 인스톨 방법 (WIndows Installer)
인스톨 , PHP 설정 , 모듈 설정 , 웹서버설정등을 같이 행함.
- 수동 인스톨 방법 (Manual Install)
- 다운로드
http://www.php.net/downloads.php 페이지에서 zip package 를 다운로드 2008.04.19 현재 5.2.5 가 최신 다운
- 적당한 디렉토리를 만들어서 압축 해제 ,
예) c:\dev\php
-> 되도록 공백을 포함하지 않는 이름으로 작성할것
- CGI 바이너리 , CLI 바이너리 , 서버모듈 모두 php5ts.dll 을 사용.
PHP 가 이 파일을 검색하는 순서는 다음과 같음.
- php.exe 의 호출 폴더 , SAPI 를 사용중인경우 웹서버 폴더 (예,C:\dev\Apache2\bin )
- Windows 의 PATH 환경변수에 등록된 폴더
php5ts.dll 파일을 유효화 시키기위해서는
- Windows 시스템 폴더에 복사
- 웹서버 폴더에 복사
- PHP 폴더를 PATH환경변수에 등록
유지보수 , 업그레이드를 고려할때 세번째 방법이 굿.
- php.ini 편집
웹서버 도큐멘트루트 설정. doc_root = c:\dev\apache\htdocs
- httpd.conf 편집
# PHP 4 :
LoadModule php4_module "c:/php/php4apache2.dll"
# Don't forget to copy the php4apache2.dll file from the sapi directory!
AddType application/x-httpd-php .php
# PHP 5:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/dev/php"
- 이상으로 기본설정은 완료.
<?php phpinfo(); ?> 코드의 test.php 파일을 저장후
http://localhost/test.php 로 브라우저 접속을 해보면
- 관련 링크
J : http://www.php.net/manual/ja/install.windows.php E: http://www.php.net/manual/en/install.windows.php 아직 한글판은 없음.
- 패키지 설치 참고
2008/04/18 - [Programming/Server] - 개발환경구축 > 패키지 설치
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/48
Programming/Server 2008/04/18 01:37
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/47
Apache 2008/04/18 00:00
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/46
Apache 2008/04/17 23:52
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/45
Programming/Server 2008/04/17 18:40
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/44
PHP/Install 2008/04/17 18:23
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/43
雑談 2008/04/17 17:55
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/42
Programming/Performance 2008/04/15 01:59
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/40
Mobile 2008/04/14 04:05
- 이클립스의 Help > Software Updates > Find and Install 선택
- Search for new features to install 선택 후 Next > 선택
- New Remote Site 선택
- New Update Site 창이 생김. 다음과 같이 입력.
Name : Android Plugin URL : https://dl-ssl.google.com/android/eclipse
Finish 클릭
- 검색 결과가 표시됨. Android Plugin 을 체크 하면
Android Editors (0.2.0.200802081635) requires plug-in "org.eclipse.wst.sse.ui". 라는 에러 메시지가 나타남. 아마 Development Tools 0.4* 이후 버젼부터 생긴듯...
Android Editor 는 필수가 아니기에 일단 체크 해제하고 Next (TODO 권장 사항 . WST 가 필요) 설치 완료후 이클립스 재기동.
p.s. 2008.04.17 eclipse classic 사용중. eclipse ide java for developer 에서도 깔아볼것.
- Window > Preferences 선택
Android 항목의 SDK Location 설정
Trackback 0
:
Trackback Address :: http://breakpoint.a4box.com/trackback/39
|