简体   繁体   中英

Transfer big data to php server-script

Currently I´m creating a little IDE in Javascript on my webpage and I´m struggling at the concept of the saving process. For the beginning I want to save the whole code written in my IDE to be saved in a .txt .

So far I know how to pass values from client-JS to server-PHP with HTTP-request, but my case I basically have to transfer a very long string. From within the php script I want to create/manipulate a .txt to save the data outside of the root of the webserver.

So I was wondering if there is a good solution to pass a lot of data at once to my php running on the server.

Do you mean something like this?

https://www.w3schools.com/php/php_file_create.asp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM