you want to create a script that will allow people to edit PHP files in their browser window?
there's 2 parts to it...
1. create a script that will load the php file and allow user to edit it.
2. create a script that will save the file once user done editing it.
this code might have bugs... it's very basic too.