Author |
Message |
VAG
Joined: 23 Feb 2019 Posts: 2
|
Posted: Sat Feb 23, 2019 3:13 am Post subject: Using an include key for a real-time created php file |
|
|
Hello, I'm using GUI encoder. My project settings; encoder version 10.2 and php7.2.
There is a php file that creates a php file and includes in main.php file when executed. But when I use Include key protection this file throws an exception.
Is there anyway to make this work with Include key protection? The thing is, main.php file fetching a dynamic file from my remote server, including in main.php and removes after use.
What I tried?
-I created another project with same key. But it throws another error "The encoded file is corrupt".
Is this a very important security setting? Should I just disable it? |
|
Back to top |
|
 |
alastair
Joined: 23 Feb 2010 Posts: 405
|
Posted: Mon Feb 25, 2019 9:49 am Post subject: |
|
|
Hi,
I believe that you have created a support ticket about this at https://support.ioncube.com so I shall just reply briefly here.
Basically, include key protection is working as you would hope it would in that an encoded file with that protection can only include, or be included by, a file with the same key. As unencoded files obviously cannot have that key it fails.
There is a workaround if you really need to include an unencoded file when using include file protection which we describe in our blog post at http://blog.ioncube.com/2014/12/15/mixing-encoded-unencoded-files/ _________________ Alastair
ionCube |
|
Back to top |
|
 |
VAG
Joined: 23 Feb 2019 Posts: 2
|
Posted: Wed Feb 27, 2019 7:52 am Post subject: |
|
|
Thank you for answer.
Edit: okay i just forgot to remove htmlspecialchar function before print. Its working perfect. |
|
Back to top |
|
 |
|