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 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. 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 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>'; 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 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. 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
Archived
This topic is now archived and is closed to further replies.