Hi everyone,
I have built a PHP system that is deployed at a few different locations and I want to make my update process much easier. What I want to do is the following:
From the Live Site
1. Check the version of the file (using filemtime)
2. Check the latest version from a Source Server
(this part is ok already)
if the version is current then do nothing. If the time stamp on the source server is newer than the live site then we want to do this:
- Using the account username and password download the latest source file.
This is important because I do not wish to use the apache user to do the update. I want to use the real username/password associated with that account.
does php support a SU type command? all my sites will be hosted on Linux boxes if that helps.
But when I think of this is seems to me to be a huge security issue. is there another way to download the latest file without having to open my file permissions to the webserver?
Thanks
Chris