Keith Devens - PHP XML Library, version 1.2b > php

본문 바로가기
사이트 내 전체검색

php

Keith Devens - PHP XML Library, version 1.2b

페이지 정보

작성자 서방님 댓글 0건 조회 760회 작성일 11-07-08 09:30

본문

http://keithdevens.com/software/phpxml

 

php 4에서도 간단하게 xml을 사용할수 있는 라이브러리.

그냥 간단하게


include('xml.php');
$data = XML_unserialize($xml);


include('xml.php');
$xml = XML_serialize($data);


$data는 배열로 만들면, 딸랑 두줄로 xml을 만들고 , 다시 xml을 배열 데이타로 만들수 있다.


[간단한 예제]
// 데이타 불러올때
$fp=fopen("test.xml","r");
while($dd=fread($fp,4096)){
$xml.=$dd;
}
include('xml.php');
$data = XML_unserialize($xml);

//데이타 기록할때

include('xml.php');

$fp=fopen("test.xml","w");

$data=array(
"company " => "company",
"aaa" => "aaa",
"bbb" => "bbb"

);

$xml = XML_serialize($data);
if(!fwrite($fp,$xml)){
echo "error";
}




와~ 쥑인다.

댓글목록

등록된 댓글이 없습니다.

Total 615건 38 페이지
php 목록
번호 제목 글쓴이 조회 날짜
열람중 서방님 761 07-08
59 서방님 481 07-08
58 서방님 722 07-08
57 서방님 500 07-08
56 서방님 792 07-08
55 서방님 481 07-08
54 서방님 994 07-08
53 서방님 683 07-07
52 서방님 0 07-07
51 서방님 0 07-06
50 서방님 1655 07-01
49 서방님 607 07-01
48 서방님 781 07-01
47 서방님 621 06-29
46 서방님 804 06-17
게시물 검색

회원로그인

접속자집계

오늘
527
어제
1,035
최대
26,974
전체
699,413
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.