Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/02/2010, 10:49
Avatar de yoyoyo82
yoyoyo82
 
Fecha de Ingreso: julio-2009
Ubicación: Springfield
Mensajes: 159
Antigüedad: 14 años, 10 meses
Puntos: 1
Exportar archivo de Servidor a C:/

Hola amigos del foro del web tengo el siguiente codigo el cual exporta una tabla de mysql a excel :
Cuando lo hacia en localhost me exportaba bien la tabla a c:/ pero al subirlo al servidor web no me lo hace saludos y gracias
Código PHP:
<form action="exportar.php" method="post" enctype="multipart/form-data">



</th>
</tr>
<td>
<input type="submit" name="exportar" value="Exportar">
</td>
<td>

</form>
</td>
</tr>
</table>
<?
if($_POST['exportar'])
{
mysql_query("Select * from finiquito into outfile 'C:/exprueba.csv ' columns terminated by ';' lines terminated by '\n'");
echo(
"exportada a C:/exprueba.csv");
}
if(
$_POST['datos'])
{
echo (
$HTTP_POST_FILES['archivo']['name']."<br>");    
echo (
$HTTP_POST_FILES['archivo']['type']."<br>");
echo (
$HTTP_POST_FILES['archivo']['size']."<br>");
echo (
$HTTP_POST_FILES['archivo']['tmp_name']."<br>");
echo (
"Datos");        
}
?>