Cita:  
					Iniciado por xasgay  
  Hola, mi problema es que no soy capaz de llamar una variable de otro archivo, explico:
 
(TENGO DOS ARCHIVOS)  
index.php (en 
http://localhost/index.php)
y 
config.php (en 
http://localhost/config.php)  
En el 
index.php tengo escrito: 
 Código PHP:
    <? include ('config.php'); ?>
<?PHP echo 'Mi nombre es '.$texto_config[01].' y tengo 3 hermanos.'; ?>    
   
Y en el 
config.php tengo escrito: 
 Código PHP:
    
<?PHP $texto_config[01] = 'Oscar'; ?>    
  
Ahora, ingreso en mi navegador aquí: 
http://localhost/index.php y me pone esto:    
Necesito ayuda, gracias :(
   prueba a declarar la variable como global  
 Código PHP:
    
$texto_config[01] = 'Oscar';
global $texto_config; 
    
  o $GLOBALS  
 Código PHP:
    
$texto_config[01] = 'Oscar';
$GLOBALS[texto_config]; 
    
  y nos cuentas si te ha servido o qué error te devuelve. 
saludos :)