i have situation where i create solution. I use wordpress and unfortunetly, i have to work behind the backend. I need to print message about user action while the CMS header have been sent. Is there any alternative then using javascript :
echo '<script type="text/javascript">/* <![CDATA[ */';
echo 'window.location.href = "'. $redirect_url . '";';
echo '/* ]]> */</script>';
i prefere a php solution.