xinglp wrote: > And I got these errors with PHP 5.4.12 > PHP Warning: Invalid argument supplied for foreach() in > /xxx/lfs-latest-files.php on line 26 > PHP Warning: Invalid argument supplied for foreach() in > /xxx/lfs-latest-files.php on line 26 > PHP Warning: Invalid argument supplied for foreach() in > /xxx/lfs-latest-files.php on line 26 > PHP Warning: Invalid argument supplied for foreach() in > /xxx/lfs-latest-files.php on line 188 > PHP Warning: Invalid argument supplied for foreach() in > /xxx/lfs-latest-files.php on line 26
That line is "foreach ( $lines as $line )". That would indicate that the $lines array is null. That indicates that the ftp or http get command didn't work. Add a line echo $dirpath . "\n"; at the top of the get_packages() function to see what files are not being retrieved. I somehow suspect the sourceforge files, but it could be something else. > sh: -t: command not found I have no idea where this came from. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page