Hello,
I am hoping someone can help me with this slight problem I'm having.
I've created an "HTML Editor" consisting of 4 php pages on our webserver to do minor HTML editing to some pages.
I have all the coding right, it lets me select a directory, then file, then opens the file exactly how it's suppose to. It even saves the file. But that's the problem. When it saves the file... it put's "/" all throughout the file that I save. Therefore, screwing up the way the HTML file looks. Any help as to what I should do... here is the code on the page it is using to save:
<?
$dir_name = "$dir_init";
$fileName = "$dir_name";
$fileName .= "/";
$fileName .= "$sel_file";
$appended = "$appended_file";
//Open File
$file_open = fopen($fileName, "r+") or die("Couldn't open file!");
fwrite($file_open, $appended) or die("Couldn't write to file!");
$msg = "<font face=Arial size=3 color=#FF0000><b>File Updated!</b></font>";
fclose($file_open);
?>
Thanks,
Phreak