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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:04:02+00:00 2026-06-17T16:04:02+00:00

I have developed a specialized Android application whose operation relies partly on files that

  • 0

I have developed a specialized Android application whose operation relies partly on files that are produced by a third party. These files basically contain configuration script that the application needs in order to work with an external hardware device. Different variants of the hardware have a unique script file, and updates and therefore new scripts are quite frequent. To date, it has been sufficient to just bundle the script files in with the application and push out frequent application updates when new scripts become available. However, a far more ideal solution would be to have the application grab an appropriate file from a web service if it isn’t available locally on the device.

At the moment no online web service exists for obtaining these files, so it is something I will create myself, and I will manually place the files onto the server.

To find the appropriate file, the application needs to match a particular string inside the file. Therefore, given a text string (which would be provided in the query string – something like findfile.php?identifier=fredbloggs), the web service needs to search through all held files and return one that contains the string inside, or otherwise an indication that the resource isn’t found.

I haven’t done much PHP before, but my intention was to knock together a simple PHP script that, when requested, initially reads through and caches the identifier strings from all scripts held on the server, and then serves back the one that contains the matching identifier string.

My question is, is there a better, simpler, or more ‘fashionable’ approach to solving a problem like this these days? For example, is there a way I could use Dropbox, or is there some other existing online storage service that already provides a handy API that does all this, to save me cooking up my own PHP service?

  • 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-17T16:04:03+00:00Added an answer on June 17, 2026 at 4:04 pm

    Instead of looking for a simpler/fashionable way, I suggest you always plan for extend-ability.

    You should probably use a MySQL database which stores the keyword and path to corresponding file to serve. (This db can be populated manually / or run a script on the server manually). When you need to get a script, you can invoke a web service which would query the db, get the correct file, and serve it. This is recommended also because in the future you might have some other data related to the scripts to look up (like scripts version number, maybe?). Grepping through all the available scripts would be inefficient.

    Handling PHP and mySQL is really simple, running through a w3schools course can get you across.

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

Sidebar

Related Questions

I have developed a SL2 application for a client (whose computers are under pretty
I have developed a web site that requires user registration and authentication for some
I have developed a Java server using Eclipse that accepts TCP socket connection from
I have developed an app that in testing has worked fine but when it
I have developed a Facebook application using Flash as3. In this application when ever
I have developed a behavior that changes the Clip property of the AssociatedObject. When
I have a fairly complex business application written in ASP.NET that is deployed on
I have an inherited code base that was developed in .NET 1.1. When I
I have developed an iphone application and submitted to the app store. Now, if
I have developed a winform application in 1280 X 1024 pixels.....when using the same

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.