Hola, mi duda es la siguiente:
Necesito hacer una página donde poder abrir archivos por ejemplo excel, hice el siguiente código pero no se como bajar el archivo subido a la carpeta del servidor.
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link href="../css/estilos-administrador.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="" />
<meta name="keywords" content="" /> <meta name="language" content="spanish" /> <meta name="distribution" content="global" /> <meta name="robots" content="all" />
<!--start wrapper-->
<!--start header-->
<IMG src="../img/logo.png" />
<!--end header-->
<!--start content-->
<!--start menu-->
<?php
include("../PHP/menu-admin.html");
?>
<form name="frmMain" method="post" enctype="multipart/form-data" action="../PHP/proceso-subir-archivo.php">
<input type="file" name="archivo" /><br /><br />
<input type="submit" class="submit" class="submit2" value="Enviar archivo" />
<!--end content-->
<!--end wrapper-->
Luego hice el php donde se sube el archivo a la carpeta:
Código PHP:
Ver original<?php
$archivo=$_FILES["archivo"]["name"];
$destino="ARCHIVO/$archivo";
echo "Los datos fueron ingresados
<meta http-equiv='refresh' content='2;URL=../PAGINAS/subir-archivos.php'/>";
}
?>
Pero no se el código para bajar el archivo de la carpeta.