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.
Result of php executing
Full code of as.php
- <?php
- $cURLConnection = curl_init();
- curl_setopt($cURLConnection, CURLOPT_URL, 'http://pfd.premierfarnell.com/farnell/resellers/eCat_Standard_USD_prices.zip');
- curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_HEADER , true);
- curl_setopt($ch, CURLOPT_NOBODY , true);
- $response = curl_exec($cURLConnection);
- $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
- curl_close($cURLConnection);
- var_dump($httpcode);