birbal Posted December 31, 2010 Share Posted December 31, 2010 what i want to do:suppose i am uploading a file into remote server filesystem through my Control Panel or FTP client (without using any php script)is there anyway to do a query in database on every uploading of a file? Link to comment Share on other sites More sharing options...
boen_robot Posted December 31, 2010 Share Posted December 31, 2010 Yes and no.There's the libevent extension that can do that, but for it to work, you need to have a PHP script running continiously on the web server. You can use the server's cron job utility for that (see examples), but the host itself may place a timeout limit for cron job executables or explicitly decline you this ability (i.e. they may decide you're violating their TOS due to overusing the server's CPU).Not to mention they need to actually install this extension on the first place.One more thing to write in to your growing letter to your host . Link to comment Share on other sites More sharing options...
birbal Posted January 1, 2011 Author Share Posted January 1, 2011 thanks boen for pointing out...i will check those soon...i think now its time to put a ticket to the host. One more thing to write in to your growing letter to your host happy.gif . Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.