阿萨德 - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of 阿萨德.php

  1. <?php
  2. // 替换为您的图片URL
  3. $imageUrl = 'https://img-va.myshopline.com/image/store/2003573382/1670911037856/81HMFLtp45S-AC-SL1500-.jpg';
  4.  
  5. // 获取图片的二进制数据
  6. $imageData = file_get_contents($imageUrl);
  7.  
  8. // 将二进制数据转换为Base64编码
  9. $base64Data = base64_encode($imageData);
  10.  
  11. // 打印Base64编码的图片数据
  12. echo $base64Data;
File Description
  • 阿萨德
  • PHP Code
  • 05 Feb-2024
  • 361 Bytes
You can Share it: