Jump to content

[Solved] VACentral Rank on site


BastiDE

Recommended Posts

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

Link to comment
Share on other sites

  • Administrators

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.

Link to comment
Share on other sites

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...