[insert_php] $dir = ‘wp-content/uploads/2017/SGC2017/I. SECRETARIA GENERAL/6. SERVICIOS EDUCATIVOS DE APOYO/14. SERVICIO SOCIAL/*.*’; $files = glob($dir); sort($files); foreach ($files as $file) { if ($file != ‘.’ && $file != ‘..’) { echo ««.utf8_encode(basename($file) ).»\n»; } } [/insert_php]
1. INSCRIPCION Y REINSCRIPCION
[insert_php] $dir = ‘wp-content/uploads/2017/SGC2017/I. SECRETARIA GENERAL/1. CONTROL ESCOLAR/1. INSCRIPCION Y REINSCRIPCION/*.*’; $files = glob($dir); sort($files); foreach ($files as $file) { if ($file != ‘.’ && $file != ‘..’) { echo ««.utf8_encode(basename($file) ).»\n»; } } [/insert_php]
REGISTROS
[insert_php] $dir = ‘wp-content/uploads/2017/SGC2017/I. SECRETARIA GENERAL/1. CONTROL ESCOLAR/1. INSCRIPCION Y REINSCRIPCION/REGISTROS/*.*’; $files = glob($dir); sort($files); foreach ($files as $file) { if ($file != ‘.’ && $file != ‘..’) { echo ««.utf8_encode(basename($file) ).»\n»; } } [/insert_php]
2. BAJA
[insert_php] $dir = ‘wp-content/uploads/2017/SGC2017/I. SECRETARIA GENERAL/1. CONTROL ESCOLAR/2. BAJA/*.*’; $files = glob($dir); sort($files); foreach ($files as $file) { if ($file != ‘.’ && $file != ‘..’) { echo ««.utf8_encode(basename($file) ).»\n»; } } [/insert_php]
REGISTROS
[insert_php] $dir = ‘wp-content/uploads/2017/SGC2017/I. SECRETARIA GENERAL/1. CONTROL ESCOLAR/2. BAJA/REGISTROS/*.*’; $files = glob($dir); sort($files); foreach ($files as $file) { if ($file != ‘.’ && $file != ‘..’) { echo ««.utf8_encode(basename($file) ).»\n»; } } [/insert_php]