...

View Full Version : Online page editor



mouse
07-11-2002, 09:37 PM
Hi
Does anyone have a script for editing pages online - as some free space hosts use - even a pretty basic one would be good.

thnk you

Robbie
07-11-2002, 11:11 PM
http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/File_Management/

some scripts hold an editor inside, you have a peak at the source code of it ;)

IKinsler
07-12-2002, 06:18 PM
If you would like to make one, you can use fopen().

<textarea name="code" cols=40 rows=8><?php
$file = "editme.txt";
$open = fopen($file, "r"); //"r" means read, "a" means append, "w" means overwrite
$code = file ($file);
fclose ($open);

for ($i=0;$i<count($code);$i++) {
echo $code[$i];
}
?></textarea>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum