Xeven Posted April 2, 2008 Share Posted April 2, 2008 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 https://forums.phpfreaks.com/topic/99270-mysql-auto-upload/ Share on other sites More sharing options...
gluck Posted April 2, 2008 Share Posted April 2, 2008 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 https://forums.phpfreaks.com/topic/99270-mysql-auto-upload/#findComment-507974 Share on other sites More sharing options...
Xeven Posted April 3, 2008 Author Share Posted April 3, 2008 Should probably mention this is trying to be done in Windows environment. Thanks for the feedback gluck. Link to comment https://forums.phpfreaks.com/topic/99270-mysql-auto-upload/#findComment-508035 Share on other sites More sharing options...
aschk Posted April 3, 2008 Share Posted April 3, 2008 In which case the same applies, just use windows scheduler instead of cron... Link to comment https://forums.phpfreaks.com/topic/99270-mysql-auto-upload/#findComment-508235 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.