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

  • SEARCH
  • Home
  • 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 8953703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:09:28+00:00 2026-06-15T14:09:28+00:00

Using PHP I’m trying to parse very large xml files and insert them into

  • 0

Using PHP I’m trying to parse very large xml files and insert them into mysql database, while this has been working more than fine for months now, I have decided that I want the script to start collecting some data from the xml along the way and storing it in an array that I can process later on in the script, the server I’m using is a dedicated server with 3GB RAM and I thought it would easily be able to store the needed information in a standard array provided I set the memory_limit to 2500MB, it shouldnt even get anywhere near it, only to find out that PHP’s arrays are extremely inefficient with memory usage and towards that end of the script running it’s hitting the limit and the script stops running.

After searching I have came accross Something Called SplFixedArray that I thought I would try, however all documentation says that all I need to do to use one is

$array = new SplFixedArray(5);

only when I try to use this I get this error when trying to run it

PHP Fatal error: Class ‘SplFixedArray’ not found in /home/rob/testscript.php on line 6

I’ve looked everywhere including php.net and I can’t seem to find out why it can’t find it. Am I missing something?

  • 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-15T14:09:29+00:00Added an answer on June 15, 2026 at 2:09 pm

    This issue is that your PHP installation is too old.

    Update to a newer version than 5.3 and you’ll have all working 🙂

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

Sidebar

Related Questions

Using PHP and MySQL, I have a forum system I'm trying to build. What
Using PHP, and MySql, I am trying to implement this rather snazzy in-place editor
Using PHP and MySQL I'm trying to get all the distinct values out the
Using PHP, I am building an application that is MySQL database resource heavy, but
Using PHP/MySQL I'm trying to create a select statement that gets the data from
Using PHP and MySQL, I'm trying to get all the private chats involving the
Using PHP I'm trying to download/save the following image: http://www.bobshop.nl/catalog/product_image.php?size=detail&id=42428 When you load this
Using PHP 5.2.4 and the OpenSSL 0.9.8g module I am trying to create a
Using php I am trying to get some data from a .csv file which
Using PHP, I can convert MySQL data or static table data to csv, Excel,

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.