Andrei Andrei - 2 months ago 15
PHP Question

Get file content via PHP cURL

I have an website. Let's call it

http://www.domain.com
. Now, on this domain.com I want to display the file contents of
http://www.adserversite.com/ads.php
. How can I do that with cURL or another method? I don't want to use
iframe
.

Thanks

Answer
echo file_get_contents('http://www.adserversite.com/ads.php');

Who needs curl for this simple task?