Answer the question
In order to leave comments, you need to log in
How to store some php files on a separate server?
Good evening everyone!
We are developing a site on codeinniter, there is a task to store some php files on separate servers.
How can this be implemented?
Answer the question
In order to leave comments, you need to log in
On separate servers in the php context, separate web services are stored, not php files.
If you need exactly the files:
- for downloading and uploading, like regular files: throw a link to them, rights 0644 and, just in case, forbid the server to execute php.
- to include via require/include: VERY CRAZY IDEA. By connecting the network file system, you will shoot your own eggs, and with explosive cartridges.
- for inclusion via file_get_contents+eval: no better than the previous one, any middle sees this first thing and cuts it out like a security hole.
offtopic: switch to a normal framework, the world has not included files by hand for a long time, but uses composer))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question