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

  1. <?php
  2. function gettr($url) {
  3.     $ch = curl_init();
  4.     curl_setopt($ch, CURLOPT_URL, $url);
  5.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  6.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  7.     curl_setopt($ch, CURLOPT_HEADER, 0);
  8.     $data = curl_exec($ch);
  9.     curl_close($ch);
  10.     return $data;
  11. }
  12. $urlok= 'https://www.xxxxxxx.com/api/changeNameServers?version=1&type=xml&key='.$keyy.'&domain='.$domxxx.'&ns1='.$ns1.'&ns2='.$ns2;  
  13. $vprice=  gettr($urlok); 
  14.  
File Description
  • Hjg
  • PHP Code
  • 08 Apr-2024
  • 468 Bytes
You can Share it: