As dangerous as it sounds, I would like users to be able to create their own PHP programs on my website.
Is there any way for me to make a code so that when the user posts theirs, they aren’t DELETING or EDITING a file that already exists, maybe using RegExp?
Thanks
If you were handy with server administration you could probably figure something out. You might want to ask this on server fault. I think if you copied the files to one directory that had the correct permissions (550 maybe), it won’t let the script write anything but I’m not really sure.
The one suggestion that I would have is to add set_time_limit() to the top off all the scripts to keep runtime short. Also I would setup a script that only allows so many executions at one time so your server doesn’t get smashed.