473,947 Members | 17,717 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?
Jul 17 '05 #1
8 6203
*** 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
--
Jul 17 '05 #2
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
Jul 17 '05 #3
In article <2q************ *@uni-berlin.de>,
Stefan Hegenbart <ic*@hegi.inf o> wrote:
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


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.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #4
*** Michael Vilain <vi****@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
--
Jul 17 '05 #5
"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/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #6

"karolina" <ra********@hot mail.com> wrote in message
news:c8******** *************** ***@posting.goo gle.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/Produ...bfuscator.html.
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com
Jul 17 '05 #7
might be you can put the script in the include directory and use zend to
encode it~
"Ira Baxter" <id******@semde signs.com> ¦b¶l¥ó
news:ci******** @enews1.newsguy .com ¤¤¼¶¼g...

"karolina" <ra********@hot mail.com> wrote in message
news:c8******** *************** ***@posting.goo gle.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/Produ...bfuscator.html.

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

Jul 17 '05 #8
Nel
"Ira Baxter" <id******@semde signs.com> wrote in message
news:ci******** @enews1.newsguy .com...

"karolina" <ra********@hot mail.com> wrote in message
news:c8******** *************** ***@posting.goo gle.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.zend.com/store/products/z...uard-suite.php

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

Nel.
Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
12201
by: MOHSEN KASHANI | last post by:
Hi, I am trying to hide some form elements in a form by default and show/hide depending on which radio button is clicked. This is what I have but it is not working: <head> <style> ..noshow { display: none; }
7
29161
by: FP | last post by:
I'm new to Java Script. I'm displaying comments people have made. Below each persons' comment I want to add 2 buttons "Reply" and "Amend". Clicking "Reply" would display an empty text field below the comment with a spell check & submit button. Clicking "Amend" would display the same buttons & text field but pre-populated with the original comment. Using Java Script how do I show / hide the text field in my list of comments but have...
1
16775
by: asilverpeach | last post by:
Hey Guys! Found some great scripts here on this topic but have to make to changes to the code that I can't seem to figure out. First, In the following code clicking on the headers shows the div information. I want a nested show hide element though. So when you click on "Do you have carpets to be cleaned?" Small Rooms & Medium Rooms appears (that I got working) But Then when you click on Small rooms or medium rooms i want the three lines...
1
4188
by: pamate | last post by:
hi, I want to show hide layers. I am able to show and hide layers but i am facing problem that, cant view the cursor in Mozilla,but i can type in input text box, its overlapping the layers. I don`t want to change the way i have used to show and hide layers. check down code :- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
10
11793
by: sara | last post by:
Hi - Is it possible to hide the detail section of a report at run time? I have a report that prints all details, with summary lines. The user would like the report ALSO with just summary lines. It seems the simplest thing is to run the code (see below) once with the detail section showing, and a second time hiding the detail section. I can't figure out the code to do that and don't see it posted.
18
7611
by: Liquidtouch | last post by:
I have been searching on this for awhile and cant find anything and playing around with it got me no where. I will start with what I am after and then explain what I have. I have a table with 3 rows and 2 columns. I would like on page load to only have one row visible with the bottom two rows hidden. I would like to have an "add" button on the bottom most visible row. When you click the "add" button it adds a row to the bottom and moves the...
18
4886
by: ryrocks | last post by:
Hi, Im making a 'contact us' page. The user click on the div, this then reveals another larger div displaying more information giving the effect of the box expanding or dropping down. I have 3 starting divs on my page, each one expanding onclick. The show/hide elemant works fine. There is one slight problem... I want the user to be able to click anywhere inside the starting div in order for the hidden div to be revealed. This is ok for the...
6
3978
by: Ralph | last post by:
Hi, I was reading effictive C++ and some other books again and they all tell you about hiding implementation details (proxy/pimpl/inheritance) but they never really explain when to use it. I am starting on a new project which is part library so I think it would be good to hide the implementation for the public classes in the library but this seems a lot of overhead to me (both when developing and runtime overhead).
6
3224
by: Doogie | last post by:
Hi I have an img control I am trying to hide upon certain types of commands in my code behind. When to hide it is directly tied to a asp:dropdownlist control. So depending on what the user selects in that dropdownlist, this image will be hidden or be displayed. I have tied the onselectedindexchanged value of the dropdownlist to a c-sharp method (not javascript) because other things are being done as well that I want to do server side. ...
0
10814
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
0
9982
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11573
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11159
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11346
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10690
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8254
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7429
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6331
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3542
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.