0

I am trying to get contents of a Website with simple html DOM as follows:

<?php
 include_once('../simple_html_dom.php');

 $html =  file_get_html('http://www.opaltransfer.com/en');

 echo($html);      
?>

When i run this on my localhost everything works fine, However when i try to run it on a remote server i am getting

Found

The document has moved here.

Why? and what can i do to get it to work? Thanks in advance

Blisskarthik
  • 1,246
  • 8
  • 20
user2209644
  • 701
  • 1
  • 9
  • 21

1 Answers1

1

You're missing a / at the end of the URL.

jcaron
  • 17,302
  • 6
  • 32
  • 46
  • wow...... i'm speechless, thank you so much, i am a bit curious as to why does it not require the "/" on the localhost to work though? again thank you a lot, will accept the answer in 2 minutes – user2209644 Jul 02 '14 at 11:14
  • 1
    Different version of php? Recent versions follow redirects by default, not sure about older ones. – jcaron Jul 02 '14 at 11:18