- Let’s get minified - Compressing and Optimizing your Code.
- Posted on July 14, 2011 | Comments I love javascript and I end up using 1,2,3...8 scripts on a site. It comes to a point that all these small file sizes add up.
Posted on October 1, 2019 by Michael Rosario | Comments
<?php
$url = "https://www.URL.com";
$data = "";
if(preg_match( '/^(http|https):\\/\\/[a-z0-9_]+([\\-\\.]{1}[a-z_0-9]+)*\\.[_a-z]{2,5}'.'((:[0-9]{1,5})?\\/.*)?$/i' ,$url)){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
$data = curl_exec($curl);
curl_close($curl);
}
echo "<div>".$data."</div>";
?>