I've got php pulling the textfile like this:
Code: Select all
<?
$filename = "home.txt";
$content_array = file($filename);
$content = implode("", $content_array);
print nl2br($content);
?>Code: Select all
<?php
$text=$_REQUEST['text'];
$filename ="../home.txt";
$myFile= fopen($filename,'w+');
$string = "$text";
fputs($myFile, $string);
fclose($myFile);
?>thanks