Jump to content

Archived

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

poirot

"PHP Browser" - no CURL please

Recommended Posts

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  ;)

Share this post


Link to post
Share on other sites
What exactly do you want to browse?

Share this post


Link to post
Share on other sites
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...)

Share this post


Link to post
Share on other sites
That is correct.
I plan though to use it for remote retrieving, not for proxy...

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.