[PHP] automatically updating software
Hi, I want to write some (browser based) software that will get installed on the client's servers, and I want it to update automatically (as in Windows XP: new updates are downloaded and presented for install). Can that be done with PHP? Some ideas so far (that will probably betray my ignorance :): - updating images will require write access that may introduce security issues? - keeping almost all code in a database and update that? - or require write access to a directory outside of the web root? - any existing approaches - apps already doing it? - what are the limits of updates distributed this way? - how much extra coding does this method imply? Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] automatically updating software
Some ideas so far (that will probably betray my ignorance :): - updating images will require write access that may introduce security issues? Security issues will prevent you from reading or writing any files that your PHP process doesn't have permissions for. In my experience, the only reliable way to do this is by using FTP using the username and password that the user will (presumably) give you. But that's scary for the user (granting some company access to your server???). Isn't there another way? I was thinking I could keep crucial function libraries in a database (not sure if that is possible??) and then just update them like that, no write access hassles. Can that be done? Can you keep your functions in a database and include them from there? Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php