В test.txt
Test1
Test2
$num = 0;
file_get_contents(http://Сайт/test/Test1
/icon.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Цитата:
Test1
Test2
PHP код:
global $num;
$lines = explode("\n",file_get_contents("http://Сайт/file.txt"));
for ($i = 0; $i < count($lines); $i++)
{
$img_logo = new TImage(c("Form1"));
$img_logo->parent = c("scrollBox1");
$img_logo->loadFromUrl("http://Сайт/test/$lines[$i]/icon.png");
$img_logo->w = 300;
$img_logo->h = 100;
$img_logo->x = 0;
$img_logo->y = $num;
$num += 112;
}
Цитата:
file_get_contents(http://Сайт/test/Test1
/icon.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found