BastiDE Posted October 16, 2010 Report Posted October 16, 2010 hi, I was trying to add the Rank from VACentral, with the manual from the Code Snippets, but I become an very long error. This code I have added: <h3>Unser Rang bei VACentral</h3> <?php $cws = new CodonWebService(); $xml = $cws->get('http://www.vacentral.net/airline/nxa_northair/xml'); $xml = simplexml_load_string($xml); echo "{$xml->rank}"; ?> Here is the Site with the error: http://www.ptp-forum...demo/index.php/ Please help me. Basti Quote
Administrators simpilot Posted October 16, 2010 Administrators Report Posted October 16, 2010 The error is coming from the vacentral side. If you go directly to http://www.vacentral.net/airline/nxa_northair/xml in your browser you will see the xmal hangs in the description of your site. I am guessing it may be the special characters that are used in your description (ie René ) that the xml module is having issue parseing. Try removing the special characters from your description at vacentral and see if it clears the error on your site. Quote
BastiDE Posted October 16, 2010 Author Report Posted October 16, 2010 hmm, now are not so many errors. But all i can remove. I read the description 2 times, but i cant find more of this. Any Idea? Edit: It works, Thanks SimPilot for this great help! Quote
BastiDE Posted October 16, 2010 Author Report Posted October 16, 2010 next question, how can i do this in the same format like VACentral? On my site is now a little 51 on the left side in the box. I like the format from VACentral. In the center, big and yellow ---- fixed myself ---- Thx again Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.