What I'm trying to do is to include a external .php file into a project.
I am about to begin a project for a client that is an online store. I've created some classes and functions that I would like to use in this and other projects, but I don't want to give these functions and classes to the clients because they could remove some restrictions that for many reasons (price reasons mostly) I've applied to the website.
Even being the most obvious way to protect my files, I really don't want to use ionCube or Zend Guard, because I would have to increase the price (not good for the business) and also because some shared hosting providers does not support this features, and using dedicated servers are expensive too (also not good for business). So finally what I want to do is to include this files from my own server, for example, I have a file called cart.php on my server and include it on the clients project that is hosted in a different server.
I hope you understand my weird explanation.
Thank's.