<?php
$id = $_GET['id'];
$html = file_get_contents("--------link-----".$id);
preg_match_all(
'/(https:.*id.)/',
$html,
$things, // will contain the article data
PREG_SET_ORDER // formats data into an array of posts
);
foreach ($things as $thing) {
$link = $thing[1];
// clear out the output buffer
while (ob_get_status())
{
ob_end_clean();
}
// no redirect
header("Location: $link");
}
?>
echter de vraag is: Hoe kan ik vanuit de output het volgende: /"%20id=
automatisch laten verwijderen ?