Jump to content

MySQL Auto Upload


Xeven

Recommended Posts

I'm not too sure if I am being a bit stupid in thinking this is possible but I figured I would ask here to see if it is possible regardless.

 

Ok so basically, is it possible for a local machine to have a directory which contains files.  Now the local machine will check the directory every 15secs or even automatically and then realise there is a new file in this directory.  If there is, then the local machine will then upload the contents of said directory to a remote MySQL database.

 

Is this at all possible, or is there a way I could come close as to getting something like this working?

 

 

Thanks in advance.

Link to comment
Share on other sites

Create a cronjob and execute every 15 or what ever minutes. Write a shell/php or perl script that globs the contents of the directory and matches against the last globbed results. If they are different open a mysql connection and upload the new data.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.