|
|
|
18년 전
|
조회 1,613
|
|
|
|
18년 전
|
조회 1,529
|
|
|
|
18년 전
|
조회 1,602
|
|
|
|
18년 전
|
조회 1,563
|
|
|
|
18년 전
|
조회 1,544
|
|
|
|
18년 전
|
조회 1,509
|
|
|
|
18년 전
|
조회 1,589
|
|
|
|
18년 전
|
조회 1,602
|
|
|
|
18년 전
|
조회 1,508
|
|
|
|
18년 전
|
조회 1,744
|
|
|
|
18년 전
|
조회 1,675
|
|
|
|
18년 전
|
조회 1,516
|
|
|
|
18년 전
|
조회 1,503
|
|
|
|
18년 전
|
조회 1,570
|
|
|
|
18년 전
|
조회 1,425
|
|
|
|
18년 전
|
조회 1,490
|
|
|
|
18년 전
|
조회 1,965
|
|
|
|
18년 전
|
조회 1,592
|
|
|
|
18년 전
|
조회 1,517
|
|
|
|
18년 전
|
조회 1,702
|
댓글 7개
http://www.sir.co.kr/bbs/board.php?bo_table=cm_free&wr_id=229795
대체 어디를 참고 해야하는거지.....ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ
<img src 로 무조건 시작하는게 아니라서..ㅠ_ㅠ
preg_match_all("<(img|IMG) [^<>]*>", $data, $output);
$str = preg_replace("/[^SRC|src][\=\"'](.*)[\"']/", "\\1", $output[0][0]);
src 내용만 뽑고 싶은데 이렇게 하니 결과값이
IMG iuserImg6391546 style='CURSOR: pointer' src='http://tfile.nate.com/download.asp?FileID=35598727' LocalFile='yes
....................ㅠ_ㅠ
preg_match_all($pat, $list[$i][wr_content], $matches);
자답!!!!! PHP스쿨에서 도움을 주셨네요..+ㅁ+
아 행복해~~ 이제 속좀 풀리네..ㅠㅠ
변수 data '로 나누어서 빼내는 방식입니다. src내용은 src_data에 저장됩니다.
<?
$data = "<IMG name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' id=userImg6391546 style='CURSOR: pointer' src='http://tfile.nate.com/download.asp?FileID=35598727' LocalFile='yes' >";
$src_data_explode = explode("'", $data);
$src_data = $src_data_explode[9];
echo $src_data
?>