On Sun, Jan 17, 2021 at 11:58:31AM -0500, David Spector wrote:
> I will be maintaining a simple local database (possibly as zero-length file
> directory entries) representing when each website page was last built, as a
> cache. Then, when a build of a website is requested, my program will use the
> database to find which files actually have to be rebuilt and uploaded to the
> production server. All this processing is done in PHP, so it seemed natural
> to use sFTP in PHP to do the uploading of the 0 or more files that need to
> be uploaded (see the simplicity of my sample insecure program above).
> Can a cURL command be executed by a PHP program to accomplish the uploading?
I'm not familiar with the PHP binding to libcurl, but I gather it is pretty
complete. A quick search let me to this page with some sample code:
so it definitely looks possible.
Received on 2021-01-17