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

  1. <?php
  2. $cURLConnection = curl_init();
  3.  
  4. curl_setopt($cURLConnection, CURLOPT_URL, 'http://pfd.premierfarnell.com/farnell/resellers/eCat_Standard_USD_prices.zip');
  5. curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);
  6. curl_setopt($ch, CURLOPT_HEADER  , true);
  7. curl_setopt($ch, CURLOPT_NOBODY  , true);
  8.  
  9. $response = curl_exec($cURLConnection);
  10. $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  11. curl_close($cURLConnection);
  12. var_dump($httpcode);
  13.  
  14.  
File Description
  • as
  • PHP Code
  • 05 Sep-2023
  • 449 Bytes
You can Share it: