no content before redirect

ereg deprecated