<?php$variable = 'http://google.com/';?>
$variable='lalala';echo '<script>window.location='. $variable .'</script>';