Hi
I have got this script that displays the contents of a file (which is in HTML) into a textarea where changes can be made, then when clicking submit, the changes are wrote into the file. However, when looking at the HTML after changing it, slashes appear before ". Is it possible to make these slashes not appear?
Heres the scripts.
Opening the file.
$adminedit = '/tier-2/pwpstore2/6/generalsworld/htdocs/maps/staff/funkiller/body.php';
$fp = fopen($adminedit, "r");
$text = fread($fp, filesize($adminedit));
//open the file into the text area
fclose($fp);
?<form action="formaction.php" method="post">
<textarea name="editpic" cols="70" rows="25">
<?php echo $text ;?>
</textarea>
</form>
And writing to the file
<?php
$file='/tier-2/pwpstore2/6/generalsworld/htdocs/maps/staff/funkiller/body.php';
$handle= @fopen($file, 'w+');
@fwrite($handle,
"{$_POST['editpic']}"
);
@fclose($handle)
?>