txt문서 수정시 문제점..
딥자두
option explicit
private declare function shellexecute lib shell32.dll alias shellexecutea (byval hwnd as long, byval lpoperation as string, byval lpfile as string, byval lpparameters as string, byval lpdirectory as string, byval nshowcmd as long) as long
private sub command1_click()
dim winhttp as object
set winhttp = createobject(winhttp.winhttprequest.5.1)
winhttp.open get, http://loveyevol.hubweb.net/note.php?aa= & protecturl(text2.text)
winhttp.send
shellexecute 0, open, iexplore.exe, http://loveyevol.hubweb.net/note.txt, vbnullstring, 1
end sub
function protecturl(byval url as string)
dim i as long
dim ansi() as byte
dim ascii as integer
dim enctext as string
ansi = strconv(url, vbfromunicode)
enctext =
for i = 0 to ubound(ansi)
ascii = ansi(i)
select case ascii
case 48 to 57, 65 to 90, 97 to 122
enctext = enctext & chr(ascii)
case 32
enctext = enctext & +
case else
if ascii 16 then
enctext = enctext & %0 & hex(ascii)
else
enctext = enctext & % & hex(ascii)
end if
end select
next i
protecturl = enctext
end function
현재 이런식으로 이용해서 공지사항을 프로그램 내에서 수정하고
보이게끔 해놧어요;;
php소스는
수다님 소스를 활용한거예요.
?
$aa =$_get[aa];
$fo = fopen(note.txt, w+); //note.txt를 쓰기위해 열음
fwrite($fo, $aa);
fclose($fo)
?
자 여기서 질문이있어요.
일정 문자 혹은 일정 길이 이상일경우 안올라가거나
혹은 짤리거나
혹은 오류발생하네요.
어찌 해결해야할까요?
용량이증가해서 전송않되는건가요?
혹은 포함 문자열중 문제가 있는게있는건가요 ㅠ_ㅠ
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2655417 | VB로 프로세스 어떻게잡아요?? settini 나오게 또어떻게하나요? (3) | 모해 | 2024-05-19 |
2655384 | 비베로 클래스파일 실행하기 (5) | 달달한캔디 | 2024-05-19 |
2655362 | 컴파일시 오류 ㅠㅠ | 맨삶이 | 2024-05-19 |
2655329 | 트레이너 질문. 핫키를누르면 적용됫다가풀림 (1) | SweetChoco | 2024-05-18 |
2655300 | 특정 프로그램 루프문으로 팅기게 하고싶은데 (2) | 애교 | 2024-05-18 |
2655272 | 강좌소스확인하는법좀요 | 말달리자 | 2024-05-18 |
2655243 | 파일크기비교 | 혜윤 | 2024-05-18 |
2655211 | 우엉~ Winhttp 겁나 급해요 ㅜㅜ (2) | 정훈 | 2024-05-17 |
2655185 | 화면의 x좌표 가장큰값 구하기 질문 (1) | 해길 | 2024-05-17 |
2655158 | 이거 강좌를 받앗는대 어떻개따라해요? | 하람 | 2024-05-17 |
2655130 | 컴퓨터 사운드 녹음 질문 | 갤쓰리 | 2024-05-17 |
2655073 | 폼끄기 질문 다시합니다 | 해찬솔 | 2024-05-16 |
2654987 | 메세지 박스 질문입니다 ~ (3) | 안다미로 | 2024-05-15 |
2654960 | 블로그 글쓰기 질문 (2) | 힘찬 | 2024-05-15 |
2654931 | 질문 하나 하겠습니다 .!! | 소윤 | 2024-05-15 |
2654904 | 비베 질문요 ㅠㅠ | 미련곰탱이 | 2024-05-15 |
2654851 | 미투데이에 글을 다는 소스를 만들어보려고 하는데 | 횃불 | 2024-05-14 |
2654822 | 원하는 이미지만 꼭 찝어서 냅두기 (3) | 다솜 | 2024-05-14 |
2654791 | 닷홈으로 TEXT를 전송하는데요.. (1) | 그리 | 2024-05-14 |
2654769 | 뭐죠 ?? | 가을 | 2024-05-13 |