Page 1 of 1

File Upload detection

Posted: Thu Jun 22, 2006 6:35 am
by paintballa_4life2006
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?

Re: File Upload detection

Posted: Thu Jun 22, 2006 6:42 am
by Chris Corbyn
paintballa_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?
Hello :)

What's the PHP Daemon doing? Can the daemon just check for new uploaded files every minute or so?

Posted: Thu Jun 22, 2006 7:00 am
by paintballa_4life2006
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?