Hi,
im trying to run the following code:
<?
ob_start();
include('niver.php');
$niver = ob_get_contents();
ob_end_clean();
ob_start();
include('ranking.php');
$ranking = ob_get_contents();
ob_end_clean();
ob_start();
include('menu.php');
$menu = ob_get_contents();
ob_end_clean();
ob_start();
include('novidades.php');
$novidades = ob_get_contents();
ob_end_clean();
ob_start();
include('server_status.php');
$server_status = ob_get_contents();
ob_end_clean();
$principal = implode('', file('principal.htm'));
$principal = str_replace('[menu]',$menu,$principal);
$principal = str_replace('[niver]',$niver,$principal);
$principal = str_replace('[novidades]',$novidades,$principal);
$principal = str_replace('[ranking]',$ranking,$principal);
$principal = str_replace('[server_status]',$server_status,$principal);
echo $principal;
?>
But it seems that was a problem with the ranking.php (blank screen) because i removed the file ranking.php from server and the code worked well with all other php files.
So i checked the ranking.php for errors writing a test.php with:
<?
include('ranking.php')
?>
and the result was just right.
So in the end it seems that ob_get_contents is giving an error only with ranking.php.
Any ideas?