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.