<?php
echo "<script type='text/javascript'>
alert('The PDF file is too large and has been send to your email.\n Please check your Spam or Junk folder.');
window.location = 'http://domain.com';
</script>";
<script type='text/javascript'>
alert('The PDF file is too large and has been send to your email.
Please check your Spam or Junk folder.');
window.location = 'http://domain.com';
</script>