Ver Mensaje Individual
  #5 (permalink)  
Antiguo 24/10/2013, 12:06
jrsiste21
 
Fecha de Ingreso: octubre-2013
Mensajes: 9
Antigüedad: 11 años, 3 meses
Puntos: 0
Respuesta: e actualiza tabla desde archivo local txt

Gracias, si te refieres a subir el archivo por medio de un script php (te comento que me parece que en este foro encontre este script php):

<!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">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
.upload{
background:#e7e7e7;
box-shadow:0px 0px 10px black;
width:500px;
height:200px;
margin-right:auto;
margin-left:auto;
border-radius:20px;

}
form{
margin: 126px auto 0;
width: 225px;
}
label{
display: block;
}
input[type="file"]{
display: block;
margin: 8px 0;
}
div.resultado{
margin: 25px auto 0;
width: 225px;
}
div.resultado img{
border: 2px solid #EEEEEE;
height: auto;
width: 225px;
}
</style>
</head>
<body>
<div class="upload">
<form action="" method="post" enctype="multipart/form-data">
<br><br>Sube un archivo:
<input type="file" name="archivo" id="archivo" /> <br>
<input type="submit" name="boton" value="Subir" />
</form>
<div>
<div class="resultado">
<?php
if(isset($_POST['boton'])){
if ((($_FILES["archivo"]["type"] == "image/gif") ||
($_FILES["archivo"]["type"] == "image/jpeg") ||
($_FILES["archivo"]["type"] == "application/pdf") ||
($_FILES["archivo"]["type"] == "text/plain") ||
($_FILES["archivo"]["type"] == "image/pjpeg")) &&
($_FILES["archivo"]["size"] < 100000)) {

if ($_FILES["archivo"]["error"] > 0) {
echo $_FILES["archivo"]["error"] . "<br />";
} else {
if (file_exists("archivos/" . $_FILES["archivo"]["name"])) {
echo $_FILES["archivo"]["name"] . " ya existe. ";
} else {
move_uploaded_file($_FILES["archivo"]["tmp_name"],
"archivos/" . $_FILES["archivo"]["name"]);
echo "Archivo Subido <br />";
echo "<img src='archivos/".$_FILES["archivo"]["name"]."' />";
}
}
} else {
echo "Archivo no permitido";
}
}
?>
</div>
</body>
</html>

el cual permite subir archivos txt, el tema es el peso de archivo, probando me permite subir archivos muy pequeños txt, pdf...., el detalle es el peso del archivo que mas o menos es de 11000 Kb.

como puede solucionar este impase?

Gracias

JRCORONA