Jump to content

context-stream


birbal

Recommended Posts

what is stream function and contexts?..how it is used?..what is the purpose of it?...i saw the context in the file_get_contents... there is a optional parameter for context which is relating to stream...i dont have any idea with both...want to know about it in brief.thank you

Link to comment
Share on other sites

what is stream function and contexts?..how it is used?..what is the purpose of it?...i saw the context in the file_get_contents... there is a optional parameter for context which is relating to stream...i dont have any idea with both...want to know about it in brief.
This is where -- stream contexts -- I got started after having encountered similar questions.Roddy
Link to comment
Share on other sites

thanks for the link..i read it.are context-stream and Curl used for same purpose?..still not getting clearly when the context-stream are being used.

Link to comment
Share on other sites

cURL is one way to make HTTP requests. Writing out the URL into the appropriate function is another... and if the URL is using the HTTP scheme, I guess the idea of contexts overlaps with cURL indeed.However, a context may provide options for any supported wrapper, not just HTTP.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...