mam problem z simplexml'em po prostu nie chcę chodzić mi na jednej maszynie php 5.1.2 apache 2.2.0
tutaj stronka:
<?php $cos=simplexml_load_file('plik.xml'); ?>
a tu plik.xml
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:getUserInfoResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://alepo.netia.pl"> <getUserInfoReturn href="#id0"/> </ns1:getUserInfoResponse> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:UserInfoBean" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://jakis.tam.adres.pl"> <credit xsi:type="xsd:double">0.280007</credit> <email xsi:type="xsd:string">mail@mail.pl</email> <expTimeStamp xsi:type="xsd:long">1155406831</expTimeStamp> <extSystemId xsi:type="xsd:string">nazwa</extSystemId> <lastTransId xsi:type="xsd:long" xsi:nil="true"/> <pstnNumber xsi:type="xsd:string">4469800</pstnNumber> <pstnZone xsi:type="xsd:string">77</pstnZone> <userId xsi:type="xsd:string">2100001</userId> </multiRef> </soapenv:Body> </soapenv:Envelope>
problem polega na tym, że na innych serwerach chodzi u mnie niestety nie.. i nie wiem co jest przyczyną php jest skompilowany jak najbardziej z wszystkimi potrzebnymi opcjami do xml'a.. brak mi pomysłów, skrypt bije takim errorem:
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:getUserInfoResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://jakis.tam.adres.pl"> <getUserInfoReturn href="#id0"/> </ns1:getUserInfoResponse> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:UserInfoBean" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://jakis.tam.adres.pl""> <credit xsi:type="xsd:do in /home/users/wwwtest/www/test.php on line 5
Wyświetl :
bool(false)
dzięki z góry za pomoc,
pozdrawiam
Ł.