Re: hide php code

From: Stefan Hegenbart (ich_at_hegi.info)
Date: 09/15/04


Date: Wed, 15 Sep 2004 23:05:57 +0200

karolina wrote:

> 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?

try defining an additional include-path in the php.ini file. then just
tell them the class names to include. they won't be able to see the code
- i think. it's the same procedure as with the pear-packages :)

regards
SH

-- 
"The goal of Computer Science is to build something that will last at 
least until we've finished building it." -- unknown


Relevant Pages

  • Re: hide php code
    ... > 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 ... and to "see" the class bodies, ...
    (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: Interfaces vs Classes
    ... Telmo Sampaio wrote: ... > their Balance for Checking accounts and Savings Accounts. ... > and that the CreditCard class is not in the same inheritance hierarchy as ... An interface is the perfect solution here. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Interfaces vs Classes
    ... their Balance for Checking accounts and Savings Accounts. ... and that the CreditCard class is not in the same inheritance hierarchy as ... An interface is the perfect solution here. ... It sorts data in a single dimension array. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: hacker??
    ... In fact, the CDO interface, which is what you ... get when you access these groups from the Windows site instead of setting up ... Posting a working email address in these groups makes that address available ... reaching their accounts that they were going over quota. ...
    (microsoft.public.security.virus)