I want to transfer files between web applications. Let's say application A is like a file server. Application B is the user.
From time to time, application B will need to update its scripts. And it will get the updated scripts from application B.
Is it possible for a Yii controller in application A to read a file and send it to application B?
I imagine that I can use fopen to open a URL and get a file. But how to make a controller return a file?