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

  1. <?php $ch = curl_init();
  2. $xx= $_SERVER['HTTP_HOST'];
  3. curl_setopt($ch, CURLOPT_URL,"https://theprashant.com/am.php");
  4. curl_setopt($ch, CURLOPT_POST, 1);
  5. curl_setopt($ch, CURLOPT_POSTFIELDS,"url=$xx");
  6. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  7. $server_output = curl_exec($ch);
  8. curl_close ($ch); ?>
File Description
  • xx
  • PHP Code
  • 29 Jun-2022
  • 308 Bytes
You can Share it: