In the PHP manual, the file operations reference an optional context (e.g. for copy). How do these contexts affect basic file operations?
In the PHP manual, the file operations reference an optional context (e.g. for copy
Share
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.
As it turns out, stream contexts can contain both options and parameters. At the current time, parameters are simply callback functions so that you can be notified at various points of the file operation. Options are wrapper-specific, and filesystem operations don’t have any options. Some examples of options for the HTTP wrapper are method, proxy, etc.