-1
I am creating files with the "file_put_contents" function of PHP, on my machine it opens normal in Notepad++, but when sending to someone and it will open in ultra Edit it asks "Do you want to Convert 'file.txt' to DOS format?"
The function I’m using in a simple way
$dados = "Olá mundo!";
file_put_contents("arquivo.txt", $dados, FILE_APPEND);
How to fix it, I’ve looked on the web but I haven’t seen anything I might be doing wrong.
Error screen:
I didn’t understand the problem. It would be the encounter?
– rray
So boy, I’m trying to see where the bug is, like in my normal open machine I’m getting it.
– Marcelo
What happens on ultra Edit? he just asks that or the file gets messed up?
– rray
The user just sent me the error photo, it should not show this error.
– Marcelo
Put that image in the question.
– rray
I pasted the image in the theme
– Marcelo
When you click on does not happen what? does not seem to be an error, just a suggestion to change the file Find.
– rray
Have you tried other programs besides these two? The problem may not be the file since you said that in Notepad++ it opens..
– Fleuquer Lima
It is probably the encoding of 'a'. However, put a line break at the end as well. Try saving your PHP as win-1252 in your code editor and see if it solves the problem.
– Bacco
While Crashed Save is just restart or reinstall application. By Thank You For Negative, it is full Noob!
– KingRider