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

  1. <?php
  2.  
  3.  
  4. $curl = curl_init(idn_to_ascii("http://www.ucuzdurr.com/"));
  5.         curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 20);
  6.         curl_setopt($curl, CURLOPT_TIMEOUT, 20);
  7.         curl_setopt($curl, CURLOPT_HEADER, true);
  8.  
  9.         curl_setopt($curl, CURLOPT_NOBODY, true);
  10.         curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  11.         curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
  12.         $response = curl_exec($curl);
  13.         curl_close($curl);
  14.  
  15. print_r( $response );
File Description
  • tate
  • PHP Code
  • 19 Feb-2020
  • 563 Bytes
You can Share it: