php - How to scrape websites when cURL and allow_url_fopen is disabled -


i know question regarding php web page scrapers has been asked time , time , using this, discovered simplehtmldom. after working seamlessly on local server, uploaded online server find out wasn't working right. quick @ faq lead me this. i'm using free hosting service edit php.ini settings. using faq's suggestion, tried using curl, find out turned off hosting service. there other simple solutions scrape contents of of web page without use or curl or simplehtmldom?

if curl , allow_url_fopen not enabled can try fetch content via

  • fsockopen — open internet or unix domain socket connection

in other words, have http requests manually. see example in manual how request. returned content can further processed. if sockets enabled, can use third party lib utilitzing them, instance zend_http_client.

on sidenote, check out best methods parse html alternatives simplehtmldom.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -