cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Properly installing curl in windows 2000

From: <DaBomb366_at_aol.com>
Date: Fri, 30 Aug 2002 00:48:12 -0400

I also wanted to add this...

When running this simple script I do get the page to come up but it gives me this error on top of the page, I don't know if that is because my permission settings or because I've not get php and curl compiled yet. This is the script that I run...

<?php

$ch = curl_init ("http://www.php.net/");
$fp = fopen ("php_homepage.txt", "w");

curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);

curl_exec ($ch);
curl_close ($ch);
fclose ($fp);
?>

This is what is written on the top of the displayed page when running this script...

Warning: fopen("php_homepage.txt", "w") - Permission denied in D:\WWW\xxxxxxx.com\www_root\xxxx.php on line 4

Warning: curl_setopt(): supplied argument is not a valid File-Handle resource in D:\WWW\xxxxxxx.com\www_root\xxxx.php on line 6

Does this mean that curl is enabled and php is using it? Does it mean that my hurdle of properly installing curl is over?

A.J.

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-08-30