Hi, everyone, Can I save a text file in the Linix system to the local PC with PHP? Thank you in advance!
Rong
By local computer, do you mean the client's computer? You can allow the client to download the file, but you can't force the computer to save it...
Diego
By local computer, do you mean the one PHP's running on? Yes. If PHP has permission to write to the directory in question, fopen() and fwrite() will do the work.