script execution is mysteriously stopping without error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • iulian.ilea

    #1

    script execution is mysteriously stopping without error

    Hello,

    I have a script that loops through two arrays.
    First array container integers (Array( 0 =152, 1 =-9652, ... 7800
    =214)).
    For the second array I parse an xml file and store its content into
    another array.

    The code stops when I'm looping through the first array to parse the
    xml file (see bellow):

    $first_array = Array( 0 =152, 1 =-9652, ... 7800 =214);

    foreach ($first_array as $id)
    {
    $xml = "http://path_to_xml?id= ".$id;

    $second_array
    new class_to_parse_ xml($xml, $first_array);

    echo $xml ."\r\n";

    foreach($second _array as $node)
    {
    // get some values from $second_array
    // and insert into db
    }
    }

    The script is not looping through any of the arrays, it doesn't return
    an error, it just displays an empty page on Firefox and "The page can
    not be displayed" on IE6.

    Any ideas?

    Thanks in advance,
    Iulian

  • Rik

    #2
    Re: script execution is mysteriously stopping without error

    iulian.ilea <iulian.ilea@gm ail.comwrote:
    The code stops when I'm looping through the first array to parse the
    xml file (see bellow):
    $second_array
    new class_to_parse_ xml($xml, $first_array);
    Euhm? Parse error?

    <http://nl2.php.net/manual/en/ref.errorfunc.p hp#ini.display-errors>
    <http://www.php.net/error_reporting >
    --
    Rik Wasmus
    Posted on Usenet, not any forum you might see this in.
    Ask Smart Questions: http://tinyurl.com/anel

    Comment

    Working...