necesito ayuda porfavor  tengo el siuiente codigo para respaldar mi base de datos en mysql pero lo guara directamente en la carpeta del sitio de dremweaver y yo necesito q me pregunte donde deseo guardarlo para poder colocar los resguardos en dispositivos portatiles,,,,,,,,,,,
llevo tres dias tratando de solucionar por favor ayuda!!!!!!!!!!!!!!!!!!1
de antemano muchas gracias........................
 
 
 
 
 
<?php
include ('conectar.php');
include("createzip.php");
$link=coneccion();
if($_POST['submit'])
 { 
     $db=$_POST['db'];
    $output=shell_exec("C:\AppServ\MySQL\bin\mysqldump  .exe -u root -p123 ".$db); 
    if(trim($output)==NULL)
     {
         echo "Error creando el backup de la DB: ".$db;
         exit();
     }
     date_default_timezone_set("America/Caracas");
     $cont=array("fecha.txt"=>"Este es un archivo generado a ".date("Y-m-d H:i:s"),
	 "$db.sql"=>$output);
     createzip($cont,"bdfoncredi.zip") or die("Error: al construir el ZIP.");
	 echo "<meta http-equiv='refresh' content='0;URL=principal.php'>";
    exit();
 }    
$select="show databases";
$select=mysql_query($select); 
?>
<html>
<head>
</head>
<body>
 <form action="" method="post">
   <div align="center">
     <p> </p>
     <p> </p>
     <p> </p>
     <p> </p>
     <p> </p>
     <table width="60%" border="10" cellspacing="5" cellpadding="5">
      <tr>
        <td width="52%"><select name="db">
          <?php
  while($row = mysql_fetch_row($select))
   {
       ?>
          <option value="<?php echo $row[0]; ?>"><?php echo $row[0]; ?></option>
          <?php
   }    
  ?>
        </select></td>
        <td width="48%"><input type="submit" name="submit" value="Crear backup" /></td>
      </tr>
       </table>
   </div>
 </form>
</body>
</html> 
  
 
