Sean Sean - 1 year ago 69
HTML Question

How do I include an external file in PHP?

I need to include and external file that is on another url. For example I have tested the include using local files, so that much works, but if I try and use Nothing happens. I don't get an error, I just get a blank page.
So how am I supposed to include in my page?

Answer Source

I have no idea why you'd want to do this, but you could most certainly try something like:

    $google_page = file_get_contents('');
    echo $google_page;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download