I have a script that I'm trying to create to edit files on a web host. It uses file_get_contents() to put the contents inside a <textarea> tag.
Code: Select all
<?php
echo "<textarea cols=40 rows=40 style='width: 400px' name='file_contents'>".file_get_contents($_GET['path'])."</textarea>";
?>Is there a way to perhaps buffer the contents or someway to get the </textarea> tags (within the to-be edited file) to not end the "<textarea cols=40 rows=40 style='width: 400px' name='file_contents'>" tag?
Thanks for reading