Code: Select all
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
<p><big>This is my Default Home Page -- index.html ... </big></p>
<?
phpinfo();
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://espn.go.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
?>
</body>
</html>It appears to want me to define curl_init(). But, I thought I did that. I was following the code example from the php.net website on using the curl_init function. http://us2.php.net/manual/en/function.curl-init.php The website I used (ESPN) is just an example. What I am trying to do should be able to bring up any website, right? Doesn't matter if it's a php site or not, does it? I'm very new to php, so any suggestions would be helpful. Thanks!Fatal Error: Call to undefined function: curl_init() in - on line 10