connect to ecom - 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 connect to ecom.php

  1. <?php
  2.  
  3. $token = '';//token
  4.  
  5. $timestamp = time();
  6.  
  7. $actual = "{$token}:$timestamp";
  8.  
  9. echo $timestamp;
  10.  
  11. echo "<br>" . PHP_EOL;
  12.  
  13.  
  14. echo base64_encode(hash_hmac('sha256', $actual, $token, true));
  15.  
File Description
  • connect to ecom
  • PHP Code
  • 24 Jun-2019
  • 191 Bytes
You can Share it: