1
<?php
    $fileNames = scandir("www.boston.com");
    foreach ($fileNames as $value) {

        $xml = simplexml_load_file($value);
        echo $xml->reviews->review->text;
    }
?>

I get " simplexml_load_file(.): failed to open stream: Permission denied..." i am using Windows.

kalehmann
  • 4,821
  • 6
  • 26
  • 36
  • Possible duplicate of [PHP scandir of an url](https://stackoverflow.com/questions/35840274/php-scandir-of-an-url) – kalehmann Sep 01 '18 at 23:39

0 Answers0