Previous Thread
Next Thread
Print Thread
Rate Thread
#103988 02/13/2001 12:14 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
is there a way to make the source code of a PHP script non readable (like compiling it or something similar) ?

I know an other bulletin board has it's code cripted in order to stop users from viewing or hacking it.

do you know how to do it ?


Do you believe in love at first sight,
or should I walk by again?
Sponsored Links
#103989 02/13/2001 11:56 PM
Joined: Mar 2000
Posts: 615
Member
Member
Offline
Joined: Mar 2000
Posts: 615
not unless you have some sort of interpreter to do that, else you'd have to do it like:

Code
code:

and you can change eval() to echo() and get the source wink

#103990 02/14/2001 2:04 AM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Well, there is the Zend Encoder which can compile PHP code into binary format, but I doubt that's what you're looking for considering the licensing cost.


UBB.classic: Love it or hate it, it was mine.
#103991 02/14/2001 7:51 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
thanks for your answers; I'll take a look smile


Do you believe in love at first sight,
or should I walk by again?
#103992 02/15/2001 6:34 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
I checked the Zend website, but even with the free compiler you have to install a plugin on the server itself.

what I really want to do is stop people i give the script to having access to it (inside is my login and password to my database) or maybe modify it, eventhough I am pretty sure they wouldn't be able to do it.

John, would you have some more informations on how to use the eval function ? It might be enough for what I am trying to do smile

thanks


Do you believe in love at first sight,
or should I walk by again?
Sponsored Links
#103993 02/15/2001 1:54 PM
Joined: Mar 2000
Posts: 615
Member
Member
Offline
Joined: Mar 2000
Posts: 615
You're giving your database login to people??

If this is something they'll install on their server, just delete the username/password or change it to something like 'CHANGEME'

#103994 02/16/2001 3:10 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
well not exactly, I am building a contact database and want these people I am going to give the script to to ba able to access it thru their own website.

I made a custom version of the script to match their design so I can't ask them to use the one I have on my site. (so they have to install the other one on their own sever)

so you see I need to leave all the database connexion info (but since it's the same than my ftp account I'd rather not let them see it)


Do you believe in love at first sight,
or should I walk by again?

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)