안녕하세요 내가 좋아하는 폴더는 '슬라이드'라고 내가 그 안에 여러 텍스트/HTML 파일을 가지고있는 상황에서 도움을 원했다 등등 ..... 이러한 파일의구문 분석 여러 HTML/텍스트 파일
구조는 다음과 같이이다 :
<h2>Title of the Slide</h2>
<p><a href="http://mydomain.com"><img src="tick_icon.jpg" width="227" height="227" alt="icon" longdesc="http://longdescription" /></a></p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
3 곳 제목, 이미지와 설명. 각 줄에 하나씩.
여기에 10 - 12 개의 파일이 있습니다. 나는 반복 코드를 사용하여 'slides'
폴더에있는 모든 파일을 구문 분석하고 각 행 (3 행)의 값을 변수로 반환하여 레이아웃 용 코드에 배치 할 수있는 기능을 원했습니다.
질문은 무엇인가 : 당신은 같은 것을 사용하여 PHP에서이 작업을 수행 할 수
? –
HTML 처리 방법에 대해 조금 더 정확하게 설명해 주시겠습니까? 특히 "각 행의 가치"란 무엇을 의미하는지 확신 할 수 없습니다. 또한이 언어를 쓸 때 선호하는 언어가 있습니까? – Karmastan