poirot Posted August 21, 2006 Share Posted August 21, 2006 I need some help... I want to make a reasonably capable "PHP browser" with cookie/POST support.So far, I managed to do it with fsockopen(). But as you know, some hosting services will disable fsockopen or even allow_url_fopen, making life difficult.Is there any way around? I just want a general direction, maybe a function name...Thanks ;) Link to comment https://forums.phpfreaks.com/topic/18172-php-browser-no-curl-please/ Share on other sites More sharing options...
trq Posted August 21, 2006 Share Posted August 21, 2006 What exactly do you want to browse? Link to comment https://forums.phpfreaks.com/topic/18172-php-browser-no-curl-please/#findComment-78043 Share on other sites More sharing options...
poirot Posted August 21, 2006 Author Share Posted August 21, 2006 I want it to simulate browser behavior, so it can visit sites and also I should be able to use POST and Cookies, and send headers (for example, User-Agent, Accept...) Link to comment https://forums.phpfreaks.com/topic/18172-php-browser-no-curl-please/#findComment-78154 Share on other sites More sharing options...
ShogunWarrior Posted August 21, 2006 Share Posted August 21, 2006 do you mean a web proxy, maybe to avoid a content filter etc.? Link to comment https://forums.phpfreaks.com/topic/18172-php-browser-no-curl-please/#findComment-78159 Share on other sites More sharing options...
poirot Posted August 22, 2006 Author Share Posted August 22, 2006 That is correct.I plan though to use it for remote retrieving, not for proxy... Link to comment https://forums.phpfreaks.com/topic/18172-php-browser-no-curl-please/#findComment-78401 Share on other sites More sharing options...
ShogunWarrior Posted August 22, 2006 Share Posted August 22, 2006 Well then you need cURL.I know you put "no curl please" in the title but if you really want to do this then it's definitely the best, fastest option.Otherwise, [b]fopen[/b] or [b]file_get_contents[/b].As you said sometimes they're blocked and if you don't have cURL then there isn't really much else you can do, they're your options. Link to comment https://forums.phpfreaks.com/topic/18172-php-browser-no-curl-please/#findComment-78612 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.