I'm wondering why file\_get\_contents() is not taking my variable (contains a linux path). This is what I'm doing:

```
    find $PWD -name "*.png" > myList

```

Then I use my php script:

```
    $list_of_files = file('myList');

```

So far so good. But when I do 

```
    echo file_get_contents($list_of_files[2]);
    echo $list_of_files[2];

```

I get a Warning that file\_get\_contents cannot find specified file. While the 2nd echo prints the path just fine.

Totally confused why its doing this. Any insights would be greatly appreciated.

Thanks.