mesh2005 Posted June 18, 2007 Share Posted June 18, 2007 I don't want anyone to check my code, is there anyway to encrypt the code? If so, do I need to configure Apache somehow to understand it? Quote Link to comment https://forums.phpfreaks.com/topic/56023-how-can-i-encrypt-the-php-source-code/ Share on other sites More sharing options...
MasterACE14 Posted June 18, 2007 Share Posted June 18, 2007 You don't need to encrypt your source code because PHP is executed Server Side, which means if someone was to view the source of your website they will only see the HTML and Javascript. Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/56023-how-can-i-encrypt-the-php-source-code/#findComment-276676 Share on other sites More sharing options...
chocopi Posted June 18, 2007 Share Posted June 18, 2007 I guess that means code like this only works on your own server: <?php $lines = file('http://www.somesite.com/'); foreach ($lines as $line_num => $line) { echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br />\n"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/56023-how-can-i-encrypt-the-php-source-code/#findComment-276685 Share on other sites More sharing options...
mesh2005 Posted June 18, 2007 Author Share Posted June 18, 2007 I mean if someone got FTP access to my website, I want to hide the code Quote Link to comment https://forums.phpfreaks.com/topic/56023-how-can-i-encrypt-the-php-source-code/#findComment-276694 Share on other sites More sharing options...
only one Posted June 18, 2007 Share Posted June 18, 2007 i am afraid that is imposible Quote Link to comment https://forums.phpfreaks.com/topic/56023-how-can-i-encrypt-the-php-source-code/#findComment-276707 Share on other sites More sharing options...
ToonMariner Posted June 18, 2007 Share Posted June 18, 2007 have a look at http://www.ioncube.com/ or http://www.zend.com/products/zend_guard sure are more out there but it has been a while since I have looked about... Quote Link to comment https://forums.phpfreaks.com/topic/56023-how-can-i-encrypt-the-php-source-code/#findComment-276719 Share on other sites More sharing options...
ToonMariner Posted June 18, 2007 Share Posted June 18, 2007 just found these http://pobs.mywalhalla.net/ http://turck-mmcache.sourceforge.net/index_old.html - looks like they are free... Quote Link to comment https://forums.phpfreaks.com/topic/56023-how-can-i-encrypt-the-php-source-code/#findComment-276720 Share on other sites More sharing options...
mesh2005 Posted June 18, 2007 Author Share Posted June 18, 2007 http://turck-mmcache.sourceforge.net/index_old.html is amazing, thank you. Just do you know any free tool that does not require server side modifications? Thank you for all your help Quote Link to comment https://forums.phpfreaks.com/topic/56023-how-can-i-encrypt-the-php-source-code/#findComment-276747 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.