Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2006, 10:37 AM
Registered User
 
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to encrypt a PHP page

Hi all,
I am a newbie, and I have almost no knowledge about PHP.
But I would like to know how to encrypt a PHP page, so my viewer can not see the contain of the page (view source). security is not an issue.
Any help/info would be appreciated.
Jack

 
Old June 26th, 2006, 10:50 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

If you are worried about the user being able to see your PHP, this is not an issue.

What happens is that the Web Server will process the PHP, and what is sent to the browser is only HTML (or possibly JavaScript). As long as someone does not have FTP access to your server, and the Server is processing the PHP, the source code cannot be viewed.

HTH

Mike

Mike
EchoVue.com
 
Old June 26th, 2006, 11:22 AM
Registered User
 
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks MUCH for the quick response.
Actually, I don't want to viewer to see the java applet that is generated inside the "diplayed" page.
I have a PHP file that will get info from data base (mySQL), and generate a popup page that has a Java applet,which I don't want viewer to see this applet.
I hope you undestand what I am looking for.
Thanks again.
Jack

 
Old June 26th, 2006, 11:27 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi Jack,

I think I understand it. From my experience with Applets, which is sketchy at best, I am not sure if this is possible. It might be worth posting a question on a Java forum, since the applet is not directly tied to the PHP.

All the best,

Mike

Mike
EchoVue.com
 
Old June 26th, 2006, 11:41 AM
Registered User
 
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks MUCH Mike,
If the file is html, or text then I can encrypt the page body easily, but I have no knowledge with PHP.
I know that someone has write a small insert code for this application, but I couldn't find it.
thanks again
Jack






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to encrypt Javascript? Edward King Javascript How-To 6 August 11th, 2011 05:40 AM
Encrypt Data Brendan Bartley Access 2 April 29th, 2008 08:30 AM
Need help password encrypt flyfish SQL Server 2000 9 July 12th, 2005 01:23 PM
passing value from Php to PHP page baby PHP How-To 3 March 31st, 2005 02:13 AM
About Column Encrypt jabby SQL Server 2000 2 November 30th, 2004 11:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.