I have to crawl some values from a website. Should I use curl for that or file_get_contents ??
I am getting some warning with file_get_contents at my localhost .
Any help will be appreciated
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think Curl is more preferable, as compared to file_get_contents as you can set headers, request methods like POST or GET, follow redirection etc. So, curl will be advisble