From:             [EMAIL PROTECTED]
Operating system: Mandrake 7.0
PHP version:      4.0.4pl1
PHP Bug Type:     cURL related
Bug description:  .netrc sought only in /root

cURL works fine in general, but when told to search for a .netrc file, searches
only in /root and not in the httpd user's actual home directory (/home/www).

i.e., the following only works if .netrc is in /root:

<?php
error_reporting(E_ALL);

echo `id`;

$url = 'ftp://www.work.loc';

if (!$curld = curl_init()) {
    echo "Could not initialize cURL session.\n";
    exit;
}

curl_setopt($curld, CURLOPT_NETRC, true);
curl_setopt($curld, CURLOPT_URL, $url);
curl_exec($curld);
echo curl_errno($curld);
?>



-- 
Edit Bug report at: http://bugs.php.net/?id=9665&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to