Still not quite getting it. Maybe there's something wrong in the code I didn't post. I'll give some more detail. Here is the file, martini.conf, I'm trying to get into the textarea:
<?
$var1 = 'apple';
$var2 = 'sauce';
$var3 = 'is good';
?>
Then the file trying to load it into the textarea:
<?
include("includes/standard_functions.php");
if ($file == 'martini.conf') {
$filepath = "config/".$file;
}else{
$filepath = "../common/".$file;
}
if (isset($submit)) {
unlink ($filepath);
$fp2 = fopen($filepath, "w");
fwrite($fp2, $body);
fclose($fp2);
}
if (file_exists($filepath)) {
$fp2 = fopen($filepath, "r");
$ABody = fgets($fp2, 100000);
fclose($fp2);
}
?>
<html>
<head>
<title>Martini3 Version <?=$mversion?> (PHP/MySQL)</title>
<link rel="stylesheet" type="text/css" href="includes/style.css">
</head>
<body bgcolor="#FFFFFF" class="body">
<textarea name="body" cols="70" rows="25"><?=$ABody?></textarea>
Sorry this is dragging on so long guys, thanks for the help.