0
I have a Web System that I’ll switch to a hosting. But I have the system with 2 banks (one for the site and the other is in my house for the path of the files, documents, logs, etc), the script will be in the hosting and the path of the files on the server in my house. The problem and the following, for security and space consumption reasons I can not send these files to the hosting. Then the user will send the document through the form, PHP connects with the database in my home and saves the document data and sends the file to my home.
How can I do that?
I’ve been thinking of sending via Ajax request to my local server and passing the return to error validation. What do you think?
Just one thing. If you think the files are safer in your home, you have a lot to learn about security. A hosting service will have a whole professional team taking care of their network security, while on your personal PC you just commit a slip that you are chipped. And by swipe I mean contracting a virus that does something nasty like Wannacry, leaving the shared root directory on the network by mistake etc. Besides, if your PC breaks, it’s gone. In hosting you will get at least cloud replication with daily backups.
– Oralista de Sistemas
My friend, yes. At the moment of development I am doing so before putting into production. More where I will implement has a server backed up 4 times a day. Hosting and only to keep the news site and services running. As around 3000 documents a year have no way to stay in the accommodation.
– Willian Coqueiro