ghurty Posted January 17, 2010 Share Posted January 17, 2010 Is there any way to encrypt html part of a php file? The software on encrypts the php part. Thank You Quote Link to comment https://forums.phpfreaks.com/topic/188758-is-there-any-way-to-encrypt-html-part-of-a-php-file/ Share on other sites More sharing options...
trq Posted January 17, 2010 Share Posted January 17, 2010 Encrypting the html will make it impossible for a browser to understand it. The best you could do would be to echo the html using php. Quote Link to comment https://forums.phpfreaks.com/topic/188758-is-there-any-way-to-encrypt-html-part-of-a-php-file/#findComment-996431 Share on other sites More sharing options...
ghurty Posted January 17, 2010 Author Share Posted January 17, 2010 Can you elaborate a little or give me a small example. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/188758-is-there-any-way-to-encrypt-html-part-of-a-php-file/#findComment-996432 Share on other sites More sharing options...
trq Posted January 17, 2010 Share Posted January 17, 2010 Echo the html using php. eg; echo "<p>this is some html</p>'; Quote Link to comment https://forums.phpfreaks.com/topic/188758-is-there-any-way-to-encrypt-html-part-of-a-php-file/#findComment-996434 Share on other sites More sharing options...
ghurty Posted January 17, 2010 Author Share Posted January 17, 2010 I tried: <? echo "<img src="images/top01.jpg" height="345" width="800">"; ?> But that doesnt seem to work. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/188758-is-there-any-way-to-encrypt-html-part-of-a-php-file/#findComment-996442 Share on other sites More sharing options...
oni-kun Posted January 17, 2010 Share Posted January 17, 2010 I tried: <? echo "<img src="images/top01.jpg" height="345" width="800">"; ?> But that doesnt seem to work. Thanks You're placing double quotes within double quotes, escape them or use single quotes: <?php echo '<img src="images/top01.jpg" height="345" width="800"/>'; ?> And note, this does not 'encrypt' anything, if that was your original question. Quote Link to comment https://forums.phpfreaks.com/topic/188758-is-there-any-way-to-encrypt-html-part-of-a-php-file/#findComment-996446 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.