Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/11/2008, 17:49
hinfra
 
Fecha de Ingreso: octubre-2008
Mensajes: 93
Antigüedad: 15 años, 7 meses
Puntos: 1
Respuesta: Problemas PHP en localhost

Gracias ya lo he modificado... pero todo sigue igual.

El problema parece ser que al leerse el codigo, se agregan puntos "." donde no deberían.

Por ejemplo, al cargar la pagina se lee:

. // It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise. // You can get copies of the licenses here: // http://www.affero.org/oagpl.html // AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING". include('config.php'); include(mnminclude.'html1.php'); include(mnminclude.'link.php'); meta_get_current(); $page_size = 20; $offset=(get_current_page()-1)*$page_size; $globals['ads'] = true; $cat=$_REQUEST['category']; do_header(_('últimas publicadas') . ' | menéame'); do_tabs('main','published');

Ese punto creo que hace que no se lea la cabecera como un comentario, y provoca que el código se rompa.

¿A que puede ser debido?


Código PHP:
do_header(_('últimas publicadas') . ' | meneame');
do_tabs('main','published');
if (
$globals['meta_current'] > 0) {
    
$from_where "FROM links WHERE link_status='published' and link_category in (".$globals['meta_categories'].") ";
    
print_index_tabs(); // No other view
} elseif ($current_user->user_id 0) { // Check authenticated users
    
switch ($globals['meta']) {
        case 
'_personal':
            
$from_time '"'.date("Y-m-d H:00:00"$globals['now'] - $globals['time_enabled_comments']).'"';
            
$from_where "FROM links WHERE link_date > $from_time and link_status='published' and link_category in (".$globals['meta_categories'].") ";
            
//$from_where = "FROM links WHERE link_status='published' and link_category in (".$globals['meta_categories'].") ";
            
print_index_tabs(7); // Show "personal" as default
            
break;
        case 
'_friends':
            
$from_time '"'.date("Y-m-d H:00:00"$globals['now'] - 86400*4).'"';
            
$from_where "FROM links, friends WHERE link_date >  $from_time and link_status='published' and friend_type='manual' and friend_from = $current_user->user_id and friend_to=link_author and friend_value > 0";
            
print_index_tabs(1); // Friends
        
break;
        default:
            
print_index_tabs(0); // All
            
$from_where "FROM links WHERE link_status='published' ";
    }
} else {
    
print_index_tabs(0); // No other view
    
$from_where "FROM links WHERE link_status='published' ";

A partir de "if ($globals['meta_current'] > 0) {"

La página da error, me muestra por pantalla el "0){" y todo el codigo que sigue...

QUE HAGOOOOO ?¿

Última edición por hinfra; 05/11/2008 a las 18:00