Suggestion: setting to trigger a webpage/script after saving
raymondsalas opened this issue · 5 comments
This might be useful for those who want to perform additional server-side tasks after saving. Use cases:
- Database backup after saving (or other types of backups)
- Transfer of files to another server
- Encryption/Obfuscation after saving
- Simply informing another server that changes were made
Curl or file_get_contents command can be placed within "Saving Files" block of file-control.php?
This is great! I actually missed the _ExtraProcesses.php file and just edited the file-control.php file (which also worked for me). Yeah, exposing this in settings might be helpful for others.
Yep, editing file-control.php works just as well (we just call the relevant class method (from _ExtraProcesses.php), in relevant places there anyway).
I need to document this better, and expose via Settings UI to make it easy for everyone. 👍🏼
what is the code for changing directory
I want to pass the directory name to ICEcoder and then directory become the starting point
You don't need to do this via code but can via the Settings > General (tab) set a root dir.