SimpleXML is PHP 5.x simplexml는 php 5.x way to handle XML. xml을 처리하는 방법. It is simpler than DOMXML (which incidentally is very poorly documented in manual or elsewhere) which is available on PHP 4.x and much simpler than SAX solutions. 그것은보다 간단 domxml (이것은 매우 저조한 부수적으로 설명되어 설명서를 참조하거나 다른)을 구매 색소폰 연주를 삽입 4.x 및 솔루션보다 훨씬 간단합니다. However it doesn’t work with certain installations of PHP 5.x. 그러나 특정 설치의 php가 작동하지 않습니다 5.x. Let’s see how we can solve it. 어디 보자 해결할 수있는 방법이 그것.

Problem 문제가
I first came across this when I realized my code works in home machine and not on site. 처음 우연히이 내 코드를 걸 깨달았을 때 처음으로 기계와 작품에없는 사이트를합니다. PHP as usual silently gives up (solution to this in next post). php 평소처럼 자동으로 포기 (그 다음에 해결 방법을이 게시물). In essence simplexml_load_string returns false without actually creating and returning the object. 허위 사실을 반환하지 않고 본질에서 simplexml_load_string 개체를 생성하고 반환합니다. So you cannot use 그래서를 사용할 수없습니다 SimpleXML simplexml in any way. 어떤 방식 으로든합니다.

Solution 해결 방법
After some debugging I found the solution. 이후 디버깅을 찾았 솔루션을합니다. Here are the steps: 다음과 같은 단계 :

1. Open php.ini ( [php.ini ( How to find it? 그것을 찾는 방법은? )
2. Search for zend.ze1_compatibility_mode 검색 zend.ze1_compatibility_mode
3. Change it to Off as shown below 아래 그림처럼 변경을 취소
zend.ze1_compatibility_mode = Off zend.ze1_compatibility_mode = 해제
4. Save php.ini and restart Apache 저장하고 다시 시작 php.ini 아파치

You are done! 당신이 끝났어!