Hi, thanks for replying.
Hmm... I am not sure. This is a Joomla based web site and I am using the following cron task:
php /home/sitename/public_html/index2.php option=com_property task=tasktosendoutemails
And it seems to work just fine
Then in the script (at the very end - I use the built in Joomla function called mosRedirect() which besides a few error checks uses the following code:
PHP Code:
if (headers_sent()) {
echo "<script>document.location.href='$url';</script>\n";
} else {
@ob_end_clean(); // clear output buffer
header( 'HTTP/1.1 301 Moved Permanently' );
header( "Location: ". $url );
}
I then pass the full url as argument into that function.
But I am after the best practice solution and of course eager to find any loopholes or bugs as well.
Bookmarks