loading html templates

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    loading html templates

    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

    PHP Code:
    $cURL curl_init();
    curl_setopt($cURLCURLOPT_URLhttp://site/templates/$temp.html);
    curl_setopt($cURLCURLOPT_HEADER0);
    curl_setopt($cURLCURLOPT_RETURNTRANSFER1);
    $data curl_exec($cURL);
    curl_close($cURL); 
    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...
Working...
X