TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Apr 29, 2004 11:54 am Post subject: |
|
|
Actually their is no way but I can probably write a
PHP script that can do that , for example !
Here's a small piece of code that will do just
what you asked , fill in the simple form and
you will get an instant update!
Code: |
<?php
if ($submit) {
if ($new) {
$new = stripslashes ($new);
$html = "index.html";
// Directory images
$file = "images/$html";
$open = fopen ($file,"a");
fwrite ($open, $new);
fclose ($open);
// Directory downloads
$file2 = "downloads/$html";
$open2 = fopen ($file2, "a");
fwrite ($open2 , $new);
fclose ($open2);
// Directory users
$file3 = "users/$html";
$open3 = fopen ($file3, "a");
fwrite ($open3 , $new);
fclose ($open3);
print "Files have been changed !";
}else{
print "Please Input The HTML before updating!";
}
}else{
print "<br><center>
<form action=\"change.php\" method=\"post\">
<textarea name=\"new\" rows=\"25\" cols=\"65\"></textarea><br>
<input type=\"submit\" name=\"submit\" value=\"Submit HTML\">
<input type=\"reset\" value=\"Reset HTML\">
</form></center>";
}
?>
|
I tested this tool out and this would make a sweet html editor , thanks for inspiring me to make it , I think you might like it also , Later! |
|