123 - 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 123.php

  1. <?php
  2.  
  3. $fd1 = fopen("MP0C_003", "rb") or die();
  4. $fd2 = fopen("MP0H_006", "rb") or die();
  5.  
  6. while(!feof($fd1))
  7. {
  8. // Name file
  9.   $str = fread($fd1, 44);
  10.  
  11.   $data = substr($str, 0, -2);
  12.   echo iconv("utf-16le", "utf-8", $data).",";
  13.  
  14. // Number file
  15.   $str = fread($fd2, 38);
  16.  
  17.   $data = substr($str, 0, -2);
  18.   echo $data."\n";
  19. }
  20.  
  21. ?>
File Description
  • 123
  • PHP Code
  • 20 Dec-2022
  • 326 Bytes
You can Share it: