alastair
Joined: 23 Feb 2010 Posts: 407
|
Posted: Thu Sep 27, 2018 10:10 am Post subject: |
|
|
Hi,
You cannot do that using just the ionCube Encoder, which does not allow you to overwrite the source files.
You can create a sub-directory within the source tree that will contain the encoded files and write into that using the allow-encoding-into source and ignore options:
ioncube_encoder71_10.2_64 -v --optimize max --without-loader-check --allow-encoding-into-source /workspace/src/class --ignore /workspace/src/class/encoded --replace-target -o /workspace/src/class/encoded
If you really want to replace the source with the encoded target then you can easily code that within a shell script using "rm -fr <source> directory" (to remove the source copy after encoding) and "mv <target> <source>" (to rename the encoded target as the source). Obviously the target directory cannot be within the source tree if using that approach.
We would urge caution when doing so. Despite the Encoder not allowing you to overwrite source files, we regularly get support requests from customers asking if it is possible to decode their encoded files as they have lost the original source. Sometimes they did have backups and version control but those too had failed. _________________ Alastair
ionCube |
|