First I'd like to say nice site!
On to business, I have a PHP daemon that needs to notice when a file gets uploaded to the server.
Heres how it works:
My client is at a football stadium, typing the plays into a program which generates an xml file. He then uploads this XML file to his server. Whenever he uploads a new XML file to the server, my PHP daemon needs to recognize that a file has been updated, or a new file has been uploaded. Any ideas for doing this?
File Upload detection
Moderator: General Moderators
-
paintballa_4life2006
- Forum Newbie
- Posts: 4
- Joined: Thu Jun 22, 2006 5:41 am
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: File Upload detection
Hellopaintballa_4life2006 wrote:First I'd like to say nice site!
On to business, I have a PHP daemon that needs to notice when a file gets uploaded to the server.
Heres how it works:
My client is at a football stadium, typing the plays into a program which generates an xml file. He then uploads this XML file to his server. Whenever he uploads a new XML file to the server, my PHP daemon needs to recognize that a file has been updated, or a new file has been uploaded. Any ideas for doing this?
What's the PHP Daemon doing? Can the daemon just check for new uploaded files every minute or so?
-
paintballa_4life2006
- Forum Newbie
- Posts: 4
- Joined: Thu Jun 22, 2006 5:41 am
The daemon serves requests for XML data to a Flash Application. The reason I programmed the daemon was to make the Flash content "live" so to say. When you say "check" how would it check? This may be a solution, but i've really gotta keep in mind system resources here.
One of the ideas I had was to program a User Interface that my client could log into, and upload the files to his server from there. Through this script, I could connect to the daemon, and let it know a new file has just been uploaded. That way, everything happens instantly. Would that be possible?
One of the ideas I had was to program a User Interface that my client could log into, and upload the files to his server from there. Through this script, I could connect to the daemon, and let it know a new file has just been uploaded. That way, everything happens instantly. Would that be possible?