Hours:





Minutes:





Seconds:





Time:

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/07/07 18:34 2004/07/07 18:34
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/297

이미지 등 큰 파일들의 preloading 에 사용할 수 있는 스크립트 입니다
skip 기능도 있습니다





jasko sample script













이미지 로딩 중 입니다 ...


style=\"left: 200px; width: 300px; position: absolute; top: 50px; height: 20px; background-color: #dddddd\">

style=\"left: 200px; width: 1px; position: absolute; top: 50px; height: 20px; background-color: #000000\">

color=#bbbb00>0%

color=#ffffff>0/0






크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/07/07 18:33 2004/07/07 18:33
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/296

이 스크립트는 각 항목의 값을 퍼센트(%) 로 지정해 주는 방식의 스크립트 입니다




J@sko Sample Script














크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/07/07 18:28 2004/07/07 18:28
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/295

mail 함수로 html파일전송하기.

이것도 팁이라고 해야할지는 모르겠지만.. 저같이 왕초보님께는 약간 도움이 될껏같아서 올려봅니다. ^^;

따로 작성해둔 html파일을 mail 함수를 이용해서 html 형식 그대로 보내는 겁니다. 예제 나가겠습니다~~

$filename = "testhtml.html"; // 메일로 보낼 html 파일
$fp = fopen($filename, "r"); // 파일 포인터 열기

$file_content = fread($fp, filesize($filename)); // 파일 크기만큼 읽기
$from = "From:jiggol@kebi.comnContent-Type: text/html; charset=euc-krn";
$sub = "테스트 메일 입니다";
$sendmail_add = "bae5342@hananet.net";

//메일 보내기
mail($sendmail_add, $sub, $file_content, $from);
?>

이렇게 하시면 됩니다.. ^^
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/07/07 14:23 2004/07/07 14:23
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/47


33. 아파치 설정
shell>./configure --prefix=/usr/local/apache

34. PHP 설정

35. PHP설치
shell>./configure
--with-apache=../apache_1.3.27
--with-config-file-path=/usr/local/apache/conf
--with-mysql=/usr/local/mysql
--with-jpeg-dir=/usr/local/lib
--with-png-dir=/usr/local/lib
--with-gif-dir=/usr/local/lib
--with-zlib-dir=/usr/local/lib
--with-gd=/usr/local/gd
--with-freetype-dir=/usr/local/include/freetype2
--with-zlib
--with-ming=/usr/lib
--with-tiff-dir=/usr/local/lib
--with-pdflib=/usr/local
--with-cpdflib
--with-openssl
--with-gettext
--with-kerberos
--with-swf=/usr/local/swf
--with-mm
--with-mhash=/usr/local/lib
--with-mcrypt=/usr/local/lib
--with-mod_charset
--with-language=korean
--with-charset=euc_kr
--with-regex=php
--with-curl
--with-ldap
--with-xml
--enable-gd-native-ttf
--enable-ftp
--enable-sockets
--disable-debug
--enable-sysvsem
--enable-sysvshm
--enable-shmop
--enable-track-vars
--enable-freetype-4bit-antialias-hack
--enable-calendar
--enable-sigchild
--enable-magic-quotes
--enable-trans-sid
--enable-inline-optimization
--enable-bcmath

shell>make
shell>make install

36. 아파치 설치

shell>./configure
--prefix=/usr/local/apache
--activate-module=src/modules/php4/libphp4.a
--enable-module=php4
--enable-shared=max
--enable-rule=SHARED_CORE
--enable-module=so

shell>make
shell>make install

37. Zend Optimizer 설치
과거에는 php.ini 파일을 수정했으나 현재는 압축을 푼후 설치 스크립트를 이용해 바로 설치가 가능하다.

38. 아파치 환경설정
shell>vi /usr/local/apache/conf/httpd.conf //환경설정파일 편집

39. 부팅시 실행되게 설정

shell>cp -p /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
shell>cp -p /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld
shell>cd /etc/rc.d/rc3.d
shell>ln -s /etc/rc.d/init.d/httpd S85httpd
shell>ln -s /etc/rc.d/init.d/mysqld S97mysqld

shell>ntsysv 명령으로 mysql, httpd 활성화

기타사항 : 위 다운로드 사이트들은 모두 제가 직접 확인해보고, 다운로드 가능한 사이트들로만 올렸습니다.
내용을 최대한 간단히 했는데, 초보자분들을 위해 좀더 자세한 메뉴얼을 준비중입니다.
기타 문의사항은 아래 홈페이지로 해주십시오.

from 럭스

문의 :
홈페이지 - http://lux.woto.net
E-MAIL - luxfree@hanmail.net
MSN - luxfree@hotmail.com
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/06/29 12:02 2004/06/29 12:02
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/202

PHP로 그래프를 그리자 - PHPLOT

PHP로 그래프를 그리자 - PHPLOT 조회수:4496


http://www.phplot.com
http://www.phplot.com/examples/
http://www.phplot.com/examples/lineplot1.htm



3D는 아직 지원하지 않지만 다양한 그래프를 그릴 수 있습니다.



Requirements
GD (works with versions 1.2 - 1.8.3 (GIF, PNG, JPEG) )
PHP3 or PHP4 (works with both). For PHP2 and PHP3 see the older routines here
Does NOT require TTF, but if you have it then PHPLOT can use it.

Features

Scalings: Log-log, text-log, text-linear, linear-linear linear-log, log-linear
TTF and Non-TTF fonts
Moving Averages (subclass _data)
Scaling of data. (subclass _data)
Movable X and Y axes.
Adjustable Tick scalings (autoscalling and manual scaling)
Legends
Ability to draw multiple graphs on one image.
Browser Cache settings (on or off)
Inteligent Color Allocation for smaller images.

Types of Charts:

Bar
Thinbarline (for stock volume charts)
Area
Line
Scatter
Error (for stock high-low-close or scientific plots)
Pie Chart:
Combinations of the above
3-D Bar Charts (50% done)
3-D Surface: (50% Done)


Licensing
GPL and PHP





검은별 http://www.aditus.nu/jpgraph/
http://www.aditus.nu/jpgraph/jpg_image_gallery/index.html
한 번 들어가보세요..
이쪽이 더 좋은 것 같은데... 참고하시기를........... 08/07 8:40:56

다솜아빠 JpGraph 1.7 정말 많은 기능들을 제공하더군요.. 08/07 10:01:14

전영규 Goooooooooooood !
두 사이트 다 좋습니다.
이런 라이브러리가 있으면 좋겠다 싶었는데,
생각만 하면 솔루션이 나오는군요. =-) 08/07 13:39:50

박구 처음에는 그 상황에 맞춰 통계를 직접 GD이용하여 그래프로 그렸는데... 특히 Perl로 그릴때 정말 노가다였는데.

이런 라이브러리가 있다니. 뒷통수 맞았군요. 진작 알았다면 노가다는 안해도 되었을 것을... 저도 지금 통계만드는 것에 PHPLOT을 잘 쓰고 있습니다. 빠르고 괜찮습니다. 08/07 15:11:36

지누스 아 좋은 내용이군요.. 08/07 15:28:19

지누스 JpGraph 죽이는 군요.. 할말을 잃음 08/07 17:58:58

이백원 와 죽이네요 저 지금 서버에 올려 시험하고 있는데 정말 괜찮네요
검은별님 담부터 아디를 하얀별로 하세요 08/08 18:08:24

여창석 혹시 jpgraph에서 한글을 쓸수 있는 방법은 없을까요? 08/08 22:25:33

허걱 혹시 검은 별님께서 폰트 관련 부분 소스를 어떻게 고치셨는지 공개해주실수 없을까요? 저도 살펴봤는데.. 잘 모르겠더라구요. 08/09 11:17:03

다솜아빠 매뉴얼중 Specifying fonts.doc 문서를 보심 나왔있습니다.
Some examples of how to specify the built in fonts

SetFont(FF_FONT1,FS_BOLD);
SetFont(FF_FONT1,FS_BOLD,12); // Size 12 is ignored
SetFont(FONT1); // Deprecated!
SetFont(FF_FONT2); // Use built in FONT1 using default style.
SetFont(FF_FONT0,FS_BOLD); // FONT0 does not support bold style, will be ignored

True Type Fonts
Before you can start using True Type Fonts you need to make sure that

1. You have downloaded the TTF files. Due to it’s size they are in a separate package from the JpGraph script code.
2. The TTF_DIR constant in jpgraph.php points to the directory where the font files may be found.
3. You installation of PHP supports TTF (most should do)

By default JpGraph will look for fonts in directory “./TTF/”
대략 위와같이 나와있는데요..
저도 해봤습니다만.... 실력이 미천한 관계로 한글은 성공하지 못했습니다.

또한 기본 폰트중에서 jpgraph.php 부분에서 Arial 폰트를 한글폰트로 수정해서 사용해 봤지만.. 이 또한 안되더군요...
성공하시는 분 계시면... 공개부탁합니다.. 자세히.... 08/09 16:33:11

세븐도 한글 성공했습니다.
jpgraph.php 부분수정
1. DEFINE("FF_GULIM",17); // 새로운 폰트 정의
2. Class TTF 수정
$this->font_fam=array(
FF_COURIER => TTF_DIR."courier",
FF_VERDANA => TTF_DIR."verdana",
FF_TIMES => TTF_DIR."times",
FF_HANDWRT => TTF_DIR."handwriting",
FF_COMIC => TTF_DIR."comic",
FF_ARIAL => TTF_DIR."arial",
FF_BOOK => TTF_DIR."bookant",
FF_GULIM => TTF_DIR."ngulim"); <= 요거추가
}

3. 그래프 만들때
$graph->xaxis->SetFont(FF_GULIM,FS_NORMAL,12);

이럼 됩니다. 물론 Font 경로에... 폰토 올려놓아야되져...~ 08/12 13:42:05

다솜아빠 전 안되네요....똑같이 해밨는데...
물론 Font경로에 ngulim.ttf 화일도 올라가 있구요...
아.....슬프다... 08/20 14:29:13

벌거지 전두 안되욤... ㅠ.ㅠ
세븐도님 사용하신 폰트좀 올려주세욤^^ 08/24 13:10:29

아성 우잉 한글 실패. 어떻게 해야하죠? 09/11 13:14:35

잘모르지만 움..안되는군요..이런.....성공하신분들..위에분 방식 말고 다른거 애기좀..전 gulim.ttc 로 했습니다..ㅠㅠ

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/06/28 11:24 2004/06/28 11:24
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/46

mysqlcheck -o database tableOptimize



[root@ibplan oilgood]# mysqlcheck -o -u wani -p wani_ibplan


Optimize table 합니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/06/22 10:50 2004/06/22 10:50
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/201

뭘 설치하든간에~!

#gzip -d 설치할놈-0.1.tar.gz
#tar -xvf 설치할놈-0.1.tar
#mv ./설치할놈-0.1/ /usr/local/설치할놈/
#cd /usr/local/설치할놈
#./configure
#make
#make test
#make install
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/06/16 19:07 2004/06/16 19:07
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/200

[자료] MRTG 이용 시스템 모니터링 예제 파일 및 설
글쓴이 : 문태준 (2001년 03월 02일 오후 03:22) 읽은수: 10,546 [ 시스템관리 # 트랙백(0) ]
## SNMP와 MRTG 이용 시스템 모니터링
MRTG를 이용 시스템 모니터링하는 예제파일들입니다. 제가 사용하는것들입니다.
SNMP, MRTG 에 대해서 사전 지식이 있어야 하므로 이와 관련된 부분은 다른 자료를 참고하셔야 합니다.
일일이 설명하기에는 너무 많군요.
MRTG로 시스템 모니터링하는 방법은 두가지가 있습니다.
SNMP 이용, 스크립트 이용. snmp를 이용하는 방법이 더 간단하지만 snmp에 대해서 어느정도는
지식이 있어야 합니다. 제 파일들에 두가지를 같이 혼합하였으니 참고하시면 될 것입니다.
그림은 http://tunelinux.pe.kr/mrtg/ 이것 보세요.

http://tunelinux.pe.kr
http://database.sarang.net
문태준(taejun@tunelinux.pe.kr)

## 참고자료
http://tunelinux.pe.kr/bbs/read.php?table=linuxinfo&no=18&o[at]=s&o[sc]=t&o[ss]=mrtg&o[st]=a
이건 제가 쓴 글입니다. MRTG 사용법.

http://www.mrtg.co.kr/
MRTG에 대한 여러가지 관련자료를 잘 모아두었습니다. 시스템 모니터링 자료 있습니다.
SNMP와 스크립트를 같이 이용합니다.

http://www.wowlinux.co.kr/download/specialview.html?id=55&view=1
MRTG로 시스템 모니터링하는 방법에 대해 설명이 있습니다. SNMP이용합니다.

http://net-snmp.sourceforge.net
ucd-snmp 홈페이지입니다. 이젠 net-snmp로 이름이 바뀐듯 합니다.

http://net-snmp.sourceforge.net/tutorial/mrtg/
위 사이트에서 snmp와 mrtg 이용 시스템 모니터링 예제가 나옵니다.

http://www.oops.org/?t=lecture&sb=mrtg&n=1
mrtg 이용 시스템 모니터링 강좌글입니다.
mrtg를 rpm 패키징으로 묶어두고 사용하는 것인데 제 생각에는 강좌내용을 참고만 하고 직접 컴파일을 하여 쓰는게 더 낫지 않은가 합니다. 좀 헷갈리거든요. 여기서는 스크립트 이용한 방식입니다.

http://tunelinux.pe.kr/bbs/read.php?table=linuxinfo&no=26
네트워크 관리 시스템에 대한 글입니다. SNMP에 대해서 알고싶다면 많은 도움될 것입니다.

/usr/share/snmp/mibs/UCD-SNMP-MIB.txt
snmp를 rpm으로 설치하는경우 경로입니다.
SNMP에서 시스템 모니터링 부분은 확장된 MIB라고 할 수 있습니다.
위 파일에 시스템 모니터링에 관련한 MIB가 들어가 있습니다.
이를 이용해 SNMP로 시스템 여러부분에 대해 모니터링하지요.
.1.3.6.1.4.... 이런식으로 숫자로 나열할 수도 있고
iso.org.dod.internet.mgm.mib-2.system 문자로 나열도 가능합니다.(=1.3.6.1.2.1.1)
snmpd.conf파일에 snmp를 이용하는 방법에 대한 예제가 있습니다.
% snmpwalk -v 1 localhost public .1.3.6.1.4.1.2021.255
이런 식이지요.

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/06/10 17:28 2004/06/10 17:28
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/199

다른계정으로 접속한 사용자가 사용하는 커맨드... 조회수:31




그사용자의 .bash_history 보세요

그사용자가 export HISTFILE=/dev/null

하지 않는이상 멀하고 놀았는지 확인 할수있씀다 ....


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2004/06/04 16:13 2004/06/04 16:13
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/198

« Previous : 1 : ... 79 : 80 : 81 : 82 : 83 : 84 : 85 : 86 : 87 : ... 101 : Next »

블로그 이미지

- 홍반장

Archives

Recent Comments

  1. 1 pHqghUme 01/05
  2. 1 pHqghUme 01/05
  3. 1 pHqghUme 01/05
  4. 1 pHqghUme 01/05
  5. 1 pHqghUme 01/05

Calendar

«   2025/02   »
            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  
Statistics Graph

Site Stats

Total hits:
268654
Today:
662
Yesterday:
425