clase 2017-10-03
[fecha de publicación: 2017-10-03]
Se explican temas y el uso y creación del hosting.
Definición y Uso
La función rmdir () elimina un directorio vacío.
tomado de: https://www.w3schools.com/php/func_filesystem_rmdir.asp
Se explican temas y el uso y creación del hosting.
PHP rmdir () Función
Definición y Uso
La función rmdir () elimina un directorio vacío.
Esta función devuelve TRUE en caso de éxito, en caso de fallo.
Sintaxis
rmdir(dir,context)
| Parameter | Description |
|---|---|
| dir | Required. Specifies the directory to be removed |
| context | Optional. Specifies the context of the file handle. Context is a set of options that can modify the behavior of a stream |
Ejemplo
<?php
$path = "images";
if(!rmdir($path))
{
echo ("Could not remove $path");
}
?>
tomado de: https://www.w3schools.com/php/func_filesystem_rmdir.asp
Comentarios
Publicar un comentario