$image = $html2->getElementById ("hlHeadImage ");
jeżeli (isset ($image)) {
jeżeli (strpos ($image->children ((0)) - >src, "clearpixel ") == (0)) {
$link = $image->children ((0)) - >src;
$path_parts = pathinfo ($link);
$ext = $path_parts ["rozszerzenie"];
$image_path = "part_images/". $ITEM_NO. ".". $ext;
@copy ($link. "&sz=lg", $image_path);
}
} inny {
$image = $html2->getElementById ("hlLargeImage ");
jeżeli (isset ($image)) {
jeżeli (strpos ($image->children ((0)) - >src, "clearpixel ") == (0)) {
$link = $image->children ((0)) - >src;
$path_parts = pathinfo ($link);
$ext = $path_parts ["rozszerzenie"];
$image_path = "part_images/". $ITEM_NO. ".". $ext;
@copy ($link, $image_path);
}
}
} |