File Upload detection

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
paintballa_4life2006
Forum Newbie
Posts: 4
Joined: Thu Jun 22, 2006 5:41 am

File Upload detection

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: File Upload detection

Post 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?
paintballa_4life2006
Forum Newbie
Posts: 4
Joined: Thu Jun 22, 2006 5:41 am

Post 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?
Post Reply