does anyone know how to set curl to load templates from a local url "./templates/index.html" rather then "http://site/templates/index.html" heres my curl code
i had to remove this from template directory
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from all
so now the folder can be accessed but with that curl code it only works with it off
i previously used file_get_contents to do this but it doesnt work on the server anymore am unsure why...
PHP Code:
$cURL = curl_init();
curl_setopt($cURL, CURLOPT_URL, http://site/templates/$temp.html);
curl_setopt($cURL, CURLOPT_HEADER, 0);
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($cURL);
curl_close($cURL);
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from all
so now the folder can be accessed but with that curl code it only works with it off
i previously used file_get_contents to do this but it doesnt work on the server anymore am unsure why...