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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:10:29+00:00 2026-05-29T09:10:29+00:00

Whats the best approach for writing data to a file that will be picked

  • 0

Whats the best approach for writing data to a file that will be picked up daily by a link to the feed?

I want our multi-client web app to allow each client to write information into an .xml file when they click a “post to feeds” button. That xml file will then be picked up daily by the feed that retrieves it. However, at any time of the day the clients can click a button to post information that should be put inside the xml file.

My initial thoughts were to just use php’s fopen, fwrite to write directly to the file. However, as clients grow I want to avoid the possibility of the main .xml file getting locked during an update, which would prevent other users from being able to add data to the xml file.

Is the file getting locked like this even possible, or am I worrying about something insignificant? We’ll have about 3000 clients.

Would I be better off putting their information into the mysql table, then write a separate process that runs once an hour to query the database and write any new posts into the xml file, which would limit the possibitily of the file getting locked?

What advice would you give me?

Thanks in advance.

  • 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-05-29T09:10:30+00:00Added an answer on May 29, 2026 at 9:10 am

    I would definitely write the data into a MySQL table and retrieve it only when needed.
    Some advantages:

    • file locking problems you mentioned already
    • scalability
    • easier to filter (maybe at some point not all clients want all data)
    • easier to extend the schema with new attributes
    • …
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whats the best practice approach to creating a form that is used to both
I have written application that is analyzing data and writing results in CSV file.
I wonder what the best approach is for a situation where I want to
What is the best approach to define additional data for typedef enums in C?
What is the best approach to synchronizing a DataSet with data in a database?
I am writing an iPhone 3.0 application that uses Core Data to persist the
I writing an application that pushes data over an external service to some server.
What's the best approach (industry standard) when another business needs to upload an XML
I just wonder what the best approach is to have multiple users work on
i wanted to know what's the best approach to develop such an epg matrix

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.