Foros del Web » Programando para Internet » PHP »

[B]substr($backup_destination,-1) == "\\")) [/B]

Estas en el tema de [B]substr($backup_destination,-1) == "\\")) [/B] en el foro de PHP en Foros del Web. Como interpretan este codigo? en lo referente a \\ //First of all we check that everything is correct //Check for trailing slash and backslash in ...
  #1 (permalink)  
Antiguo 03/11/2004, 10:04
 
Fecha de Ingreso: enero-2002
Mensajes: 1.438
Antigüedad: 22 años, 2 meses
Puntos: 0
[B]substr($backup_destination,-1) == "\\")) [/B]

Como interpretan este codigo?
en lo referente a \\


//First of all we check that everything is correct
//Check for trailing slash and backslash in backup_sche_destination
if (!empty($backup_sche_destination) and
(substr($backup_sche_destination,-1) == "/" or substr($backup_sche_destination,-1) == "\\")) { $error = true;
$sche_destination_error = get_string("pathslasherror");
//Now check that backup_sche_destination dir exists
} else if (!empty($backup_sche_destination) and
!is_dir($backup_sche_destination)) {
$error = true;
$sche_destination_error = get_string("pathnotexists");
}
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:59.