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 8367895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:15:57+00:00 2026-06-09T13:15:57+00:00

My question is based more on theory than syntax, but any syntax suggestions are

  • 0

My question is based more on theory than syntax, but any syntax suggestions are more than welcome. My project has a larger scope and a smaller scope. I will explain both, but I’m most concerned about the smaller scope immediately. Any suggestions for the larger scope are welcome.

The shorthand of what I need to accomplish(smaller scope):

Parse multiple(2-4) xml files. Target a single element that reoccurs. Insert the data from within that element(a string of characters) into mySQL from each occurrence. Read back from the database how many rows of that data were inserted(I only need a count of how many times that element occurred in each file, I’m not immediately concerned with the data within the element).
I still need to store the data, but once again am ultimately only concerned with how many times the element showed up in each xml file. I will then need to echo back the summation for each xml file, and ultimately e-mail the results.

For the larger scope: Eventually this script will need to be automated. It will need to, once an hour, be scheduled to look for new occurrences of these xml files that are stored on a local server, inserted in mySQL, then echo back the new summation for that hour. My thought for this would be cron jobs.

I know this is a very loaded question, but any help would be appreciated. Thanks ahead of time for any help/suggestions.

  • 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-09T13:15:58+00:00Added an answer on June 9, 2026 at 1:15 pm

    My recommendation would be to start writing the script, setup a DB connection, use SimpleXML, and yeah, unless you can trigger the script using organic traffic, just crontab it.

    It’s not really difficult, it’s just the fact that it’s a labor intensive script to write.

    But you can do something like this (pseudo code)…

    $XML = new SimpleXMLElement($xmlstr);
    
        foreach($XML->elements as $XML)
        {
         if(isset($XML->tag_you_are_looking_for))
         {
          //Insert $XML->tag_you_are_looking_for to DB
         }
        }
    

    For Multiple files, just loop the parser class you made. For remote files, get them first using cURL.

    My suggestion overall is just start with those things in mind and if you have any more specific problems you run into, ask those questions separately.

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

Sidebar

Related Questions

My question is more process based than code based, but to share (and maybe
This is a more HTML based question then iOS -specific but how would you
Here's another C#/.NET question based merely on curiousity more than an immediate need ...
Ok this is more of a computer science question, than a question based on
This is a more specific question based on a question I asked earlier... If
Ok I had asked a question recently based on this. But I need to
EDIT : this question is very similar to this one but it's more conceptual
This question is more of an architecture based question. I would like some solutions
This is using WordPress lingo - but is more of a core PHP based
This question has more to do with how I am setting up my server

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.