Jump to content

Recommended Posts

Posted

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

  • Administrators
Posted

The error is coming from the vacentral side.

If you go directly to

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.

Posted

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!

Posted

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 :D

---- fixed myself ----

Thx again

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...