 |
| 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
|
|
|
|

June 26th, 2006, 10:37 AM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

June 26th, 2006, 10:50 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
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
|
|

June 26th, 2006, 11:22 AM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

June 26th, 2006, 11:27 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
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
|
|

June 26th, 2006, 11:41 AM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |