Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

php protect work

Posted on 2013-11-13
4
Medium Priority
?
336 Views
Last Modified: 2013-11-13
I want to prevent others from copying my work. I have generated php file uploaded to my server and running my site. Now if someone goes into the web browser and does "view source" he can see my code. How can I prevent that?

I know that there is software called php codelock....but is that for the actual php files themselves? Any ideas?
0
Comment
Question by:Starquest321
  • 2
4 Comments
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39646148
You cannot see the php code with "view source". Only the generated output (usually HTML).

HTH,
Dan
0
 

Author Comment

by:Starquest321
ID: 39646159
OK - - - so if they don't have the original file my code is safe from external browser, right?
0
 
LVL 35

Accepted Solution

by:
Dan Craciun earned 2000 total points
ID: 39646172
Yes, your web visitors cannot view your code.
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 39646327
If you wanted to be safe from prying eyes on the server, you could use IonCube or Zendloader to encrypt your PHP.  They are not free however and must be installed on the server.  You can't install them on shared hosting but some hosts do have those available.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question