I found that this line gives a warning on my installation of PHP because of security settings that I cannot change.
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
I think the reason is because open_basedir is set.
My understanding is that this line says to follow a redirect if it occurs.
Is there another way to accomplish this, with open_basedir set?