Location: PHPKode > projects > PHP-OS > PHP-OS BetaV2/editFile.php
<?php
include('includes.php');
$file=$_POST['file'];
$absolutePath=$_SERVER['SCRIPT_FILENAME'];;
$absolutePath=preg_replace("/editFile.php/",'',$absolutePath);

$inhalt=htmlspecialchars(file_get_contents($file));
echo '
<div class="editfunctions"><a href="javascript:saveFile(\''.$file.'\')">'.$spr[editFileSave].'</a></div>
<textarea style="border:0px black solid; width:550px; height:400px;" id="contentFile">'.$inhalt.'</textarea>';
Return current item: PHP-OS