Thanks rudi. What i mean by loading is to use the same saved html file inside this function curl_setopt instead of test.html .
PHP Code:
curl_setopt($curlCURLOPT_URL'test.html' 
I tried this but it value of url didn't get loaded properly !!


PHP Code:
        curl_setopt($curlCURLOPT_URL'http://localhost/testFolder/'.$id.'.html.'); 
Furthermore, is it possible to save the remove file inside a folder instead of current directory where this script runs ?