php: cURL ile html kaynak kodu alın

0 Cevap php

Nasıl kullanmadan http://www.example-webpage.com/file.html in html kaynak kodunu alabilirsiniz file_get_contents()?

I need to know this because on some webhosts allow_url_fopen is disabled so you can't use file_get_contents(). Is it possible to get the html file's source with cURL (if cURL support is enabled)? If so, how? Thanks.

0 Cevap