birbal Posted January 15, 2011 Share Posted January 15, 2011 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 More sharing options...
iwato Posted January 15, 2011 Share Posted January 15, 2011 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 More sharing options...
birbal Posted January 18, 2011 Author Share Posted January 18, 2011 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 More sharing options...
boen_robot Posted January 18, 2011 Share Posted January 18, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.