Hi,
I wanna edit one file on my server through it's web interface - it is configuration file for network adapter and I wanna change an IP address.
I open file form my server:
$open = fopen($file_path,"w");
and I save file with
fwrite($open, $text);,
but, it seams that it is not in the same form (or format) opened and closed.
When I open original file from my ssh client, notepad do not show break lines just rectangles and all text in same line, but after edit with textarea and fwrite, it shows line by line - but format with line by line on the file looks like unrecognizable for system because linux wont read configurations from it and after reboot my network adapter is down.
Thanks,
Cheers.