글 검색 결과
- 2009/07/28 Windows XP x64 에서 Windows Live Messenger 9 (2009) 설치하기
- 2009/07/19 php FILES 관련
- 2009/07/15 새것들 (3)
- 2009/07/15 mysql 원격지 접속시 딜레이 문제 해결
- 2009/07/14 Onload 이벤트
- 2009/07/14 CSS <-> Javascript 속성 레퍼런스
- 2009/07/12 mysql 원격접속시 오류가 발생할때
- 2009/07/09 무선인터넷 노트북과 데스크탑을 서로 연결하여 데스크탑에서 인터넷을 쓰는 방법
- 2009/07/09 새컴퓨터 구입 (3)
Windows XP x64 에서 Windows Live Messenger 9 (2009) 설치하기
php FILES 관련
파일 업로드 관련소스를 보면 대부분 복잡합니다.
고로 귀찮아서 책안보시고 공부하는분들은 접근하기가 어렵는데, 사실 한번 해보면 쉽습니다.
아래는 기본적인 업로드에 관련된 소스입니다. 폼입니다.
이렇게 보내면 이렇게 변수를 받습니다.
아주 간단하게는 이렇게 하면 끝납니다.
move_uploaded_file 함수 말고 cp라는 함수도 있는데, 이 함수가 더 낫다고 하네요.
이 코드는 서버의 임시 폴더로 들어간 파일을 현재 php파일이 존재하는 곳의 img 폴더에 업로드한 파일명으로 파일을 옮기는 과정입니다. 간단하게 이렇게 하면 업로드가 끝납니다.
확장자 제한, 오류발생시 무시등은 여러분의 몫입니다.
mysql 원격지 접속시 딜레이 문제 해결
윈도우: Mysql디렉토리\my.ini리눅스: /etc/mysql/my.cnf
skip-external-lockingskip-lockingskip-name-resolveskip-host-cach
윈도우: 컴퓨터 관리 - 서비스 및 응용 프로그램 - 서비스 - Mysql 또는 우클릭 후 재시작리눅스: sudo /etc/init.d/mysql reload
Onload 이벤트
window.onload = function(){ alert('hi'); }
function window::onload(){ alert('hi'); }
CSS <-> Javascript 속성 레퍼런스
CSS Properties To JavaScript Reference Conversion
| CSS Property | JavaScript Reference |
|---|---|
| background | background |
| background-attachment | backgroundAttachment |
| background-color | backgroundColor |
| background-image | backgroundImage |
| background-position | backgroundPosition |
| background-repeat | backgroundRepeat |
| border | border |
| border-bottom | borderBottom |
| border-bottom-color | borderBottomColor |
| border-bottom-style | borderBottomStyle |
| border-bottom-width | borderBottomWidth |
| border-color | borderColor |
| border-left | borderLeft |
| border-left-color | borderLeftColor |
| border-left-style | borderLeftStyle |
| border-left-width | borderLeftWidth |
| border-right | borderRight |
| border-right-color | borderRightColor |
| border-right-style | borderRightStyle |
| border-right-width | borderRightWidth |
| border-style | borderStyle |
| border-top | borderTop |
| border-top-color | borderTopColor |
| border-top-style | borderTopStyle |
| border-top-width | borderTopWidth |
| border-width | borderWidth |
| clear | clear |
| clip | clip |
| color | color |
| cursor | cursor |
| display | display |
| filter | filter |
| font | font |
| font-family | fontFamily |
| font-size | fontSize |
| font-variant | fontVariant |
| font-weight | fontWeight |
| height | height |
| left | left |
| letter-spacing | letterSpacing |
| line-height | lineHeight |
| list-style | listStyle |
| list-style-image | listStyleImage |
| list-style-position | listStylePosition |
| list-style-type | listStyleType |
| margin | margin |
| margin-bottom | marginBottom |
| margin-left | marginLeft |
| margin-right | marginRight |
| margin-top | marginTop |
| overflow | overflow |
| padding | padding |
| padding-bottom | paddingBottom |
| padding-left | paddingLeft |
| padding-right | paddingRight |
| padding-top | paddingTop |
| page-break-after | pageBreakAfter |
| page-break-before | pageBreakBefore |
| position | position |
| float | styleFloat |
| text-align | textAlign |
| text-decoration | textDecoration |
| text-decoration: blink | textDecorationBlink |
| text-decoration: line-through | textDecorationLineThrough |
| text-decoration: none | textDecorationNone |
| text-decoration: overline | textDecorationOverline |
| text-decoration: underline | textDecorationUnderline |
| text-indent | textIndent |
| text-transform | textTransform |
| top | top |
| vertical-align | verticalAlign |
| visibility | visibility |
| width | width |
| z-index | zIndex |
Usage
Internet Explorer
document.all.div_id.style.JS_property_reference = "new_CSS_property_value";
Older Netscape's (4.7 and earlier)
document.div_id.JS_property_reference = "new_CSS_property_value";
Netscape 6.0+ and Opera (and other Mozilla)
document.getElementById(div_id).style.JS_property_reference = "new_CSS_property_value";
Note the use of parentheses instead of square brackets in newer Mozilla's "getElementById()" reference.
mysql 원격접속시 오류가 발생할때
무선인터넷 노트북과 데스크탑을 서로 연결하여 데스크탑에서 인터넷을 쓰는 방법
먼저 노트북은 WIndows XP, 데스크탑은 Windows 7 을 기준으로 설명합니다.
- 노트북이 무선인터넷에 연결되어 있어야 합니다.
- 노트북의 유선랜포트와 데스크탑의 유선랜포트를 서로 연결해줍니다.
먼저 노트북부터 세팅해야합니다. 위와 같이 무선 연결이 아닌 로컬 영역 연결에서 속성을 선택합니다.

그리고 난 후 TCP/IP 를 찾아 속성을 선택합니다.

아이피 설정을 아래 그림과 같이 설정하시고 (만약 공유기 사설아이피로 192.168.1.1 을 이미 쓰고 있다면 192.168.3.1 등을 쓰셔도 무방합니다. 그렇게 하시면 데스크탑 설정에서도 설정하신 것과 똑같이 설정해주셔야합니다.) DNS 설정은 쓰시는 인터넷의 DNS서버를 입력하시면 됩니다. 참고로 저는 공유기를 쓰고 있는데, 노트북에 TwinIP 가 잡힌 상태라 그냥 제가 쓰는 인터넷의 DNS 서버 주소를 그대로 적었습니다.
그러면 노트북은 세팅이 끝났습니다. 다음은 데스크탑에서의 설정입니다.

제어판에서 네트워크 및 인터넷을 선택하시고 네트워크 및 공유 센터를 들어갑니다.
로컬 영역 연결이라는 항목을 찾아서 선택합니다. 그리고 거기서 뜨는 창에서 속성을 선택합니다.
그러면 아래와 같은 창이 뜹니다.

여기서도 TCP/IP를 찾아 속성을 선택합니다. 만약 IPv6 와 IPv4가 나눠져있으면 IPv4 로 하세요.

그리고 위와같이 설정하시면 됩니다. DNS서버는 역시 아까 입력한것과 동일하게 해야합니다.




x64_MessengerLive_Installer.zip














