Whenever we use file_get_contents function of PHP, does the function saves the downloaded page to harddisk? And if yes, where does it save it to?
Also, does it gets auto-delete after the page is closed?
I am using Linux.
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.
file_get_contentsreads the entire file into a string, which will be stored in memory (RAM), which will be automatically freed either at the end of the scripts execution or if the variable is unset.