ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder

Using an include key for a real-time created php file

Author Message
VAG



Joined: 23 Feb 2019
Posts: 2

PostPosted: Sat Feb 23, 2019 3:13 am    Post subject: Using an include key for a real-time created php file Reply with quote

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
View user's profile Send private message
alastair



Joined: 23 Feb 2010
Posts: 372

PostPosted: Mon Feb 25, 2019 9:49 am    Post subject: Reply with quote

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
View user's profile Send private message
VAG



Joined: 23 Feb 2019
Posts: 2

PostPosted: Wed Feb 27, 2019 7:52 am    Post subject: Reply with quote

Thank you for answer.
Edit: okay i just forgot to remove htmlspecialchar function before print. Its working perfect.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum