336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

 

PHP isset, empty, is_null의 상관 관계와 정보 요약

 

 

 

if($var) 

isset 

empty 

is_null 

$var1 =1

 TRUE

TRUE 

FALSE 

FALSE 

$var="";

FALSE 

TRUE 

TRUE 

FALSE 

$var="0";

FALSE 

TRUE 

TRUE 

FALSE 

$var=0;

 FALSE

TRUE

TRUE 

FALSE 

$var=NULL;

 FALSE

FALSE

TRUE 

TRUE 

$var

 FALSE

FALSE

TRUE 

TRUE 

$var=array()

 FALSE

TRUE

TRUE

FALSE 

$var=array(1)

TRUE 

TRUE 

 FALSE

FALSE 

 

isset : 값이 주어진 이상 TRUE
Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

mac address 에 대해서 질문좀할게요^^
SEQ : 126278 글쓴이 : dark66

작성 포맷 :TEXT 모드, 자동 줄바꿈 사용

제가 스크랩해놓은.. Mac Address 알아내는 소스.. 자알 써먹으세요. ^^;
(참고로 저도 안해봤음.. ㅎㅎ 테스트 하고 손좀 봐야 할터인데..)
내용은 Nbtstat를 이용하여 접속한 IP의 정보를 Text로 저장후 Text를 분석 

strMac = GetMACAddress(Request.ServerVariables("REMOTE_ADDR")) 

function GetMACAddress(strIP) 
Set net = Server.CreateObject("wscript.network") 
Set sh = Server.CreateObject("wscript.shell") 

sh.run "%comspec% /c nbtstat -A " & strIP & " > c:\" & strIP & ".txt",0,true 

Set sh = nothing 

Set fso = createobject("scripting.filesystemobject") 
Set ts = fso.opentextfile("c:\" & strIP & ".txt") 

macaddress = null 
Do While Not ts.AtEndOfStream 
   data = ucase(trim(ts.readline)) 
   if instr(data,"MAC ADDRESS") Then 
     macaddress = trim(split(data,"=")(1)) 
     Exit Do 
   End if 
loop 
ts.close 
Set ts = nothing 
fso.deletefile "c:\" & strIP & ".txt" 
Set fso = nothing 
GetMACAddress = macaddress 
End function 
mac address 에 대해서 질문좀할게요^^
SEQ : 126278 글쓴이 : dark66

작성 포맷 :TEXT 모드, 자동 줄바꿈 사용

제가 스크랩해놓은.. Mac Address 알아내는 소스.. 자알 써먹으세요. ^^;
(참고로 저도 안해봤음.. ㅎㅎ 테스트 하고 손좀 봐야 할터인데..)
내용은 Nbtstat를 이용하여 접속한 IP의 정보를 Text로 저장후 Text를 분석 

strMac = GetMACAddress(Request.ServerVariables("REMOTE_ADDR")) 

function GetMACAddress(strIP) 
Set net = Server.CreateObject("wscript.network") 
Set sh = Server.CreateObject("wscript.shell") 

sh.run "%comspec% /c nbtstat -A " & strIP & " > c:\" & strIP & ".txt",0,true 

Set sh = nothing 

Set fso = createobject("scripting.filesystemobject") 
Set ts = fso.opentextfile("c:\" & strIP & ".txt") 

macaddress = null 
Do While Not ts.AtEndOfStream 
   data = ucase(trim(ts.readline)) 
   if instr(data,"MAC ADDRESS") Then 
     macaddress = trim(split(data,"=")(1)) 
     Exit Do 
   End if 
loop 
ts.close 
Set ts = nothing 
fso.deletefile "c:\" & strIP & ".txt" 
Set fso = nothing 
GetMACAddress = macaddress 
End function 

http://www.taeyo.pe.kr/Forum/Content.aspx?SEQ=126278&TBL=ASP

 

제가 스크랩해놓은.. Mac Address 알아내는 소스.. 자알 써먹으세요. ^^;
(참고로 저도 안해봤음.. ㅎㅎ 테스트 하고 손좀 봐야 할터인데..)
내용은 Nbtstat를 이용하여 접속한 IP의 정보를 Text로 저장후 Text를 분석

strMac = GetMACAddress(Request.ServerVariables("REMOTE_ADDR"))

function GetMACAddress(strIP)
Set net = Server.CreateObject("wscript.network")
Set sh = Server.CreateObject("wscript.shell")

sh.run "%comspec% /c nbtstat -A " & strIP & " > c:\" & strIP & ".txt",0,true

Set sh = nothing

Set fso = createobject("scripting.filesystemobject")
Set ts = fso.opentextfile("c:\" & strIP & ".txt")

macaddress = null
Do While Not ts.AtEndOfStream
   data = ucase(trim(ts.readline))
   if instr(data,"MAC ADDRESS") Then
     macaddress = trim(split(data,"=")(1))
     Exit Do
   End if
loop
ts.close
Set ts = nothing
fso.deletefile "c:\" & strIP & ".txt"
Set fso = nothing
GetMACAddress = macaddress
End function 

Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

MSSQL MS 에서 

 

변경 내용을 저장할 수 없습니다. 변경 내용을 적용하려면 다음 테이블을 삭제하고 다시 만들어야 합니다. 다시 만들 수 없는 테이블을 변경했거나 [테이블을 다시 만들어야 하는 변경 내용 저장 사용 안 함] 옵션을 설정했습니다.

 

발생시

 

[테이블을 다시 만들어야 하는 변경 내용 저장 사용 안 함] 옵션이 어디 있느냐..

 

그것은 바로

 

MSSQL Management Studio → 도구 → 옵션 → Designers → 테이블 및 데이터베이스 디자이너 → 테이블을 다시 만들어야 하는 변경 내용 저장 안 함

 

체크를 풀어주면 된다.

Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

IIS를 구성하던중 아래와 같은 메시지가 발생되었다...

HTTP 오류 500.21 - Internal Server Error

"PageHandlerFactory-Integrated" 처리기의 모듈 목록에 잘못된 모듈 "ManagedPipelineHandler"이(가) 있습니다.


문제발생 원인 : ASP.NET 이 IIS에 등록이 되지 않아서 문제가 발생하게 된것...

등록 방법 2가지

1) Visual Studio가 설치 되어 있지 않는 상황 :
명령어 프롬프트를 열고 아래 경로로 가면 버전별로 있음. 확인필요

C:\Windows\Microsoft.NET\Framework\v4.0.30319 이렇게 들어가서

aspnet_regiis.exe -i 라고 치면 문제 해결

2) Visual Studio가 설치 되어 있는 경우 :
Visual Studio 2010에 보면 Visual Studio 명령 프롬프트가 있는는데
실행시키고 aspnet_regiis.exe -i 라고 치면 문제 해결

 

'IT' 카테고리의 다른 글

IIS 7.0 에서 임의 폴더 서비스 제외.  (0) 2013.07.02
ASP MAC Address 알아내기 FROM TAEYO.NET.  (0) 2013.06.18
SVN Hook command  (0) 2013.05.30
암호화/복호화 Component  (0) 2013.05.15
Visual SVN Server & tortoise SVN Client  (0) 2013.05.13
Posted by 당양부부34

2013. 5. 30. 11:46 IT

SVN Hook command

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

SVN Hook cmd Script

 

1.  UPDATE

@echo off
SET WORKING_COPY="C:\로컬경로"
"VisualSVN Server 경로\bin\svn.exe" update %WORKING_COPY% --username webUpdater --password 암호 --non-interactive --trust-server-cert
(--non-interactive --trust-server-cert 은 https 인증 오류로 붙임. 인증서 설치된 서버는 생략.)

2. CLEANUP

"VisualSVN Server 경로\bin\svn.exe" cleanup %WORKING_COPY% --username webUpdater --password 암호 --non-interactive --trust-server-cert

'IT' 카테고리의 다른 글

ASP MAC Address 알아내기 FROM TAEYO.NET.  (0) 2013.06.18
IIS ASP.NET 동작 에러 ( 500.21 )  (0) 2013.05.30
암호화/복호화 Component  (0) 2013.05.15
Visual SVN Server & tortoise SVN Client  (0) 2013.05.13
모바일 홈피 scalable Meta tag.  (0) 2013.05.07
Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

select
a.name as table_name,
b.name as column_name,
c.name as data_type,
c.length as data_length
from sys.tables a
inner join sys.syscolumns b on a.object_id=b.id
inner join sys.systypes c on c.xtype=b.xtype
where a.name in
 (
 select name from sysobjects
 where xtype = 'U'
 )
and b.name in ('userid', 'user_id')
order by table_name

Posted by 당양부부34

2013. 5. 15. 16:16 IT

암호화/복호화 Component

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

PHP, ASP.NET, JSP와 달리 ASP는 제공되는 암호화 관련 모듈이 없다.

그럴 때 사용하면 유용한 모듈이 MS에서 제공하는 'CAPICOM'이다.



사용법


첨부된 DLL 파일을 서버에 등록한 후, 해당 모듈을 사용하면 된다.

샘플을 보려면 MSI 설치 파일을 설치하면 된다.



참고 경로


http://msdn.microsoft.com/en-us/library/ms995332.aspx

Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

서버(Visual SVN Server)에서 repository 만들고..

 

개발단(tortoise SVN Client)에서 import를 통해 서버에 파일 업로드 하고

 

다른 개발단(tortoise SVN Client)에서는 폴더 만들고 체크아웃을 통해 파일을 받는다.

'IT' 카테고리의 다른 글

SVN Hook command  (0) 2013.05.30
암호화/복호화 Component  (0) 2013.05.15
모바일 홈피 scalable Meta tag.  (0) 2013.05.07
Visual SVN Post-commit Hook 에 update 걸었는데 동작 안해..  (0) 2013.05.03
ping과 tracert  (0) 2013.04.10
Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes, target-densitydpi=medium-dpi" />

<html>
<body>
<table>
 <tr>
  <td>
가나다라자러ㅐ허ㅑㅈㄷ
  </td>
  <td>
가나다라자러ㅐ허ㅑㅈㄷ
  </td>
  <td>
가나다라자러ㅐ허ㅑㅈㄷ
  </td>
  <td>
가나다라자러ㅐ허ㅑㅈㄷ
  </td>
  <td>
가나다라자러ㅐ허ㅑㅈㄷ
  </td>
 </tr>

</table>
</body>
</html>

 

'IT' 카테고리의 다른 글

암호화/복호화 Component  (0) 2013.05.15
Visual SVN Server & tortoise SVN Client  (0) 2013.05.13
Visual SVN Post-commit Hook 에 update 걸었는데 동작 안해..  (0) 2013.05.03
ping과 tracert  (0) 2013.04.10
웹표준. <embed>, <object>, <video>  (0) 2013.03.22
Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

완전 개고생..

모에 쓰인 사람처럼..

 

엉뚱한데다 권한이나 주고

정답은 쓰고자 하는 곳에 Network Service에 전체 권한 줘버려..

 

ㅋㅋ

'IT' 카테고리의 다른 글

Visual SVN Server & tortoise SVN Client  (0) 2013.05.13
모바일 홈피 scalable Meta tag.  (0) 2013.05.07
ping과 tracert  (0) 2013.04.10
웹표준. <embed>, <object>, <video>  (0) 2013.03.22
[Web] MP4 파일 HTML에서 재생하기.  (0) 2013.03.22
Posted by 당양부부34

블로그 이미지
주요 토렌트를 블로깅하고 있습니다. 토렌트 순위 등은 다른 사이트를 찾아보세요. 주요 웹툰 순위도 게재했어요 경제를 좋아하는 일산의 행복한 프로그래머입니다.
당양부부34
Yesterday
Today
Total

달력

 « |  » 2024.3
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함