Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/11/2009, 15:07
[email protected]
 
Fecha de Ingreso: octubre-2005
Mensajes: 405
Antigüedad: 19 años, 3 meses
Puntos: 1
Problemas con Funcion exec

No se me ejecutan los exec().
Alguien de ustedes me podria ayudar.
Desde ya agradezco cualquier aporte.

Código PHP:
<?                                                                              
 
//Copia lista de videos a Local Lira                                
 
exec("scp videolira.pls queule:/indra/videos");                                               
 
//Directorio de Videos                                                         
 
$path="videos/";                                                               
 
//Copia Videos                                                                 
 
include("config.php");                                                         
 
$sql=mysql_query("select * from VIDEOS where ESTADO_VI=1 and LIRA_VI=1") or die
(
"Problemas con conexion videos..<b>".mysql_error()."</b>");                    
 
$numeroRegistros=mysql_num_rows($sql);                                         
 if(
$numeroRegistros 0)                                                       
 {                                                                              
     while(
$fila=mysql_fetch_array($sql))                                       
     {                                                                          
        
$nom=$fila['NOM_VI'];                                                   
        
$archivo="$path$nom";                                                   
        
exec("scp $archivo queule:/indra/videos");                         
     }                                                                          
 }                                                                              
 
//header("Location: ".$_SERVER['HTTP_REFERER']);                               
?>