How to code an entire php file in BASE64

0

I have the following problem.

I developed a program in PHP for several clients, this program must be installed in a wamp locally with the client, since it connects with an SQL SERVER of a third party software, a wholesaler offered to distribute it, I was happened to take out the PHP concentrate that I call base.php that contains all the functions in POO for my program, the idea is that when the wholesaler install it, enter a serial number and send a form to my server where I will verify if the number of series is correct then, I will give an answer with the file base.php in BASE64 the problem is that I do not know how to encode all the contents of the php file in an exhibition, can it? there are pages where I put all my php in a form and it encodes it but when I receive the serial number I will store it in a constant, then I code it and I'll return it, at least that's the idea.

    
asked by Alejandro Godinez 26.02.2018 в 09:43
source

1 answer

1

link

next try to search; in this case with looking for something like "php base64" you would have found that same link.

Among the comments you have a lot of examples.

    
answered by 26.02.2018 в 11:14