doutang1946
2012-06-22 04:20
浏览 25
已采纳

php - 不确定如何描述

I got images in a php includes file.

<img class="imgmove" src='data:image/png;base64,<?php echo base64_encode(file_get_contents("images/form/firstname.png")); ?>'>

code works flawless. I was testing the design and I dragged an image in to an input bar and it spit back the following:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEkAAAAaCAYAAAGMbkETAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77uUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21ZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjM4OEE4RjdCQzIwMTFFMTk5RjFBMDZBRkUxMTMyMkIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjM4OEE4Rj//z8DMYAJXYCRkRGGz4NonApBoKio6D8QfwCxi4uLwVay4LDJsa+v7wBQsQGIDRIACCBGYtzIguY2kA5GJC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AAAABJRU5ErkJggg==

What is all of that code? can someone tell me? Thanks -- and should I be securing my php file so that it doesn't show this code?

图片转代码服务由CSDN问答提供 功能建议

我在php包含文件中获取图像。

 &lt  ; img class =“imgmove”src ='data:image / png; base64,&lt;?php echo base64_encode(file_get_contents(“images / form / firstname.png”));  ?&gt;'&gt; 
   
 
 

代码完美无瑕。 我测试的设计和我在到输入栏拖动图像并将其回吐以下:

数据:图像/ PNG; BASE64,iVBORw0KGgoAAAANSUhEUgAAAEkAAAAaCAYAAAGMbkETAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw / eHBhY2tldCBiZWdpbj0i77uUh6cmVTek5UY3prYzlkIj8 + IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21ZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjM4OEE4RjdCQzIwMTFFMTk5RjFBMDZBRkUxMTMyMkIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjM4O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vRswbAyIlalyRFik0G6cnRijX8dSRYojogVHHoHQFvc73Uq0tgG0ceAfKoa7RXAxp5XuiLJNMa4yp1dY3SO9gXCSHqDPCaZOAAAAABJRU5ErkJggg ==

所有代码是什么? 有人能告诉我吗? 谢谢 - 我应该保护我的php文件,以便它不显示此代码吗?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

  • doxzrb8721 2012-06-22 04:22
    最佳回答

    This is the base64 data uri for the image you dragged in . There is not an issue with you php file from what I understand.

    评论
    解决 无用
    打赏 举报
查看更多回答(1条)

相关推荐 更多相似问题