Re: hide php code

From: Ira Baxter (idbaxter_at_semdesigns.com)
Date: 09/18/04


Date: Sat, 18 Sep 2004 12:35:19 -0500


"karolina" <rallykarro@hotmail.com> wrote in message
news:c8a98246.0409151039.6d09a01c@posting.google.com...
> Hi,
>
> I have a webserver which some user have their own accounts on. I want
> to provide the users with some public classes which they may use use
> when they are making there own php code placed in their own
> directories.
>
> I want the code to be accessable via an interface (like h-files in c)
> but I do not want my code to be viewable to the users which are using
> my classes. Very much like a library or something.
> How do I make php code which are hidden but are free to use by my
> users with a defined interface against my classes?

Your source code needs to be processable by the PHP compiler.
But, you don't want your code-users to "see" it.
This is an unsolvable problem when stated this way.

What you can do is to obfuscate the source code you want them
to use. This enables them (and the compiler) to see the public interface,
and to "see" the class bodies, but if the class bodies
are sufficiently obfuscated, it won't do them much good
to see it.

See http://www.semanticdesigns.com/Products/Obfuscators/PHPObfuscator.html.

-- 
Ira D. Baxter, Ph.D., CTO   512-250-1018
Semantic Designs, Inc.      www.semdesigns.com


Relevant Pages

  • Re: hide php code
    ... > I have a webserver which some user have their own accounts on. ... > to provide the users with some public classes which they may use use ... > I want the code to be accessable via an interface ... > How do I make php code which are hidden but are free to use by my ...
    (comp.lang.php)
  • hide php code
    ... I have a webserver which some user have their own accounts on. ... to provide the users with some public classes which they may use use ... I want the code to be accessable via an interface ... How do I make php code which are hidden but are free to use by my ...
    (comp.lang.php)
  • Re: hide php code
    ... > I want the code to be accessable via an interface ... > How do I make php code which are hidden but are free to use by my ... If there's a way to do so, I can only think of a PHP encoder like Turck ... -+ I'm not a free help desk, please don't e-mail me your questions ...
    (comp.lang.php)
  • How can I prevent my public VB6 classes from being Implementable?
    ... How do I prevent my public classes in my application DLL's from being ... application DLL's, Implement its public class interfaces, and deploy a DLL ... Bad interface for Implements: Interface is derived from another pure ... some of my VB6 classes. ...
    (microsoft.public.vb.com)
  • Re: keep interface private to dll?
    ... Dushan, ... a typelib and reference that typelib in your dll. ... able to use your interface but you'll be able to use it on public classes. ...
    (microsoft.public.vb.general.discussion)