Analysis of phpfwrite when writing txt files with rn cannot wrap the problem. I encountered a problem today, that is, when I used fwrite to write a txt file, I tried it for a long time and could not find a solution! Suddenly, I thought of something that I had read a book before. later I used it. today I encountered a problem. I used fwrite to write a txt file.
I haven't found a solution after trying for a long time!
I suddenly thought that I had read a book before and used this stuff to solve it!
I want to help my friends who need help in preventing future forgetting!
View the code directly:
The code is as follows:
$ Stream = fopen ("robots.txt", "w + ");
Fwrite ($ stream, "Have you got a new line? \ r \ n I already have a new line! ");
?>
Mongorn cannot relay. I haven't found a solution for a long time! Suddenly I thought that I had read a book before and used it later...