Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8822033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:59:55+00:00 2026-06-14T05:59:55+00:00

Intro Currently I am working with XML files. With PHP I combine several XML

  • 0

Intro

Currently I am working with XML files. With PHP I combine several XML files. This is a big operation that exceeds the default memory_limit of PHP.

When I extend the limit with ini_set('memory_limit', '1024M'); the fatal error is gone and the script doesn’t exceed the limit anymore.

The problem I have now is that after combining the XML files my script is buggy.
Browsers are loading endless, I am still able to do everything serverside. Like e-mail myself, adding rows to the database. But everything clientside just dont work. Like a simple echo 'Hello World'; or header('location: http://www.google.com');

While combining the files I log the steps.

$stores = $this->Store->getAll();
$this->log(2, 'all', 1337, 'Start processing ' . count($stores) . ' stores ';
foreach($stores as $store)
{
    $this->log(2, $store->id, 1337, 'Start processing store ';
    $this->process_store($store->id, false);
}
$this->log(2, 'all', 1337, 'Done with processing ' . count($stores) . ' stores ';
header('location: ' . BASE_URL . '/datatest');
die();

The strange part is that my script DOES log the last log Done with processing. Anything I do at serverside works.

But the header (redirect) just doesn’t. My browser is just endless loading.

Questions

  • What is going wrong?
  • Do browsers disable communication with the server after some time?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:59:56+00:00Added an answer on June 14, 2026 at 5:59 am

    I noticed that the server and client disconnect from each others.

    Finaly I found the solution, which is realy ugly!

    I had to set a sleep(1); inside the foreach loop to keep the server and client connected.

    Omg this is slower then before :'(

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on an application that parses huge XML files. For each
Currently I'm working on an application that has to parse a large XML file
I am currently working with XML files, and am searching to have a better
A game Im working on has several XML files it uses to manage sprite
I have been working on code that parses external XML-files. Some of these files
Currently working with converting SQLException error messages into messages that are more useful for
I'm currently working on a jQuery script that will translate the site's text into
I'm currently working on sprite sheet tool in python that exports the organization into
I'm currently into studying wordpress files structure. Which PHP file or PHP files are
I am currently working on an application that pulls Google Map locations from an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.