Skip to content

Instantly share code, notes, and snippets.

@barrykooij
Created December 3, 2014 15:03
Show Gist options
  • Save barrykooij/162b5dc975eb54bc416b to your computer and use it in GitHub Desktop.
Save barrykooij/162b5dc975eb54bc416b to your computer and use it in GitHub Desktop.
<?php
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL, "example.com" );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$output = curl_exec( $ch );
curl_close( $ch );
var_dump( $output );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment