URL を「計算」してリダイレクトする必要があります。次のコードがあります。
<?php
//Basic HTML parsing with PHP
include("simple_html_dom.php");
$htmlCode = file_get_html('http://example.net/example.html');
foreach($htmlCode->find('div[class=frontPageImage]') as $element) {
foreach($element->find('img') as $imagee)
$imgurl = $imagee->src;
}
header("'Location:".$imgurl."'");
?>
最初に $imgurl で URL を取得し、後でその URL にリダイレクトします...しかし、機能しません..
アイデアや提案はありますか?ありがとう