hide php code

This is a discussion on hide php code within the PHP Language forums, part of the PHP Programming Forums category; Hi, I have a webserver which some user have their own accounts on. I want to provide the users with ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-15-2004
karolina
 
Posts: n/a
Default hide php code

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?
Reply With Quote
  #2 (permalink)  
Old 09-15-2004
Alvaro G. Vicario
 
Posts: n/a
Default Re: hide php code

*** karolina escribió/wrote (15 Sep 2004 11:39:22 -0700):
> 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?


If there's a way to do so, I can only think of a PHP encoder like Turck
MMCache or a similar tool:

http://turck-mmcache.sourceforge.net/index_old.html

Check the "Encoder" part.

--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--
Reply With Quote
  #3 (permalink)  
Old 09-15-2004
Stefan Hegenbart
 
Posts: n/a
Default Re: hide php code

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
Reply With Quote
  #4 (permalink)  
Old 09-16-2004
Alvaro G Vicario
 
Posts: n/a
Default Re: hide php code

*** Michael Vilain <vilain@spamcop.net> wrote/escribió (Wed, 15 Sep 2004
15:35:54 -0700):
> If the code is readable by the browser but no one else, that should do
> it. Make sure it's permissions are set to exclude world read.


The original poster isn't concerned about regular system users seeing the
code--what she doesn't want is that webmasters can see the source code!


--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Reply With Quote
  #5 (permalink)  
Old 09-17-2004
Tim Tyler
 
Posts: n/a
Default Re: hide php code

"Michael wrote or quoted:

> If the code is readable by the browser but no one else, that should do
> it. Make sure it's permissions are set to exclude world read.


*Normally* the browser is on the client - and PHP files are on the server.
--
__________
|im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.
Reply With Quote
  #6 (permalink)  
Old 09-18-2004
Ira Baxter
 
Posts: n/a
Default Re: hide php code


"karolina" <rallykarro@hotmail.com> wrote in message
news:c8a98246.0409151039.6d09a01c@posting.google.c om...
> 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/Produ...bfuscator.html.


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


Reply With Quote
  #7 (permalink)  
Old 09-20-2004
Matthewtung
 
Posts: n/a
Default Re: hide php code

might be you can put the script in the include directory and use zend to
encode it~
"Ira Baxter" <idbaxter@semdesigns.com> ¦b¶l¥ó
news:cihrev0snr@enews1.newsguy.com ¤¤¼¶¼g...
>
> "karolina" <rallykarro@hotmail.com> wrote in message
> news:c8a98246.0409151039.6d09a01c@posting.google.c om...
> > 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/Produ...bfuscator.html.
>
>
> --
> Ira D. Baxter, Ph.D., CTO 512-250-1018
> Semantic Designs, Inc. www.semdesigns.com
>
>



Reply With Quote
  #8 (permalink)  
Old 09-22-2004
Nel
 
Posts: n/a
Default Re: hide php code

"Ira Baxter" <idbaxter@semdesigns.com> wrote in message
news:cihrev0snr@enews1.newsguy.com...
>
> "karolina" <rallykarro@hotmail.com> wrote in message
> news:c8a98246.0409151039.6d09a01c@posting.google.c om...
> > 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.zend.com/store/products/z...uard-suite.php

It's not cheap, but it's very good.

Nel.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0