Forum Moderators: coopster
Ive done this, but it inevitably doesn't work. Could someone tell me what ive done wrong please
<?php
$url = 'something.html';
$target_url = 'http://www.google.com';
if(preg_match($target_url, $url, $new)) {
if(count($new) > 0) {
$url = $target_url.$url;
}
}
echo $url;
?>