How to redirect ?
-
How to redirect from croj job ? It is not working form cron job header("Location:http://abc.com");
-
How to redirect from croj job ? It is not working form cron job header("Location:http://abc.com");
You are more than likely outputing stuff to the browser before you set the header (redirect), which isn't allowed (read the docmentation[^]). You should also call
exit;
after you set a redirection header (also described in the documentation), to make sure the script is stopped.If at first you don't succeed, you're not Chuck Norris.
-
You are more than likely outputing stuff to the browser before you set the header (redirect), which isn't allowed (read the docmentation[^]). You should also call
exit;
after you set a redirection header (also described in the documentation), to make sure the script is stopped.If at first you don't succeed, you're not Chuck Norris.