# XML loading with php is slow

**URL:** https://forum.kirupa.com/t/xml-loading-with-php-is-slow/176450
**Category:** flash
**Created:** [January 24, 2006, 8:25am UTC](https://forum.kirupa.com/t/xml-loading-with-php-is-slow/176450 "2006-01-24T08:25:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Cakeman](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@Cakeman](https://forum.kirupa.com/u/Cakeman)
#### Post date: [January 24, 2006, 8:25am UTC](https://forum.kirupa.com/t/xml-loading-with-php-is-slow/176450/1 "2006-01-24T08:25:04Z")

</div>

I’m loading XML cross domain and it works but it’s really slow, or sometimes it never load…

```auto
system.usecodepage=false;
c = new XML();
t = new LoadVars();
c.ignoreWhite = true;
t.load("/pages/fl_php/countfeed.php");
c.load("/pages/fl_php/proxy.php");
c.onLoad = function(success) {
    if (success) {
        showValues();
    }
};
stop();

```

**t.load("/pages/fl\_php/countfeed.php");** is my way counting the headlines and its an easy way(insecure) to knowing how many headlines I can show.

I’m using Macromedias tip to load XML crossdomain

```php
<?php
$dataURL = "http://www.newsmachine.com/external/xml_feed.xml";
readfile($dataURL);
?>

```

I’m I doing something wrong and how can i make sure that the XML is loaded everytime?! Sometimes I have to click the link in flash to reload the page that shows the XML to get the XML to load…

Help!
