Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/01/2013, 13:29
Avatar de Capimaster
Capimaster
 
Fecha de Ingreso: agosto-2004
Mensajes: 494
Antigüedad: 19 años, 8 meses
Puntos: 2
Forbidden You don't have permission al querer subir un archivo SWF

Forbidden

You don't have permission to access /Anuncios/banner_admin.php on this server.

Al parecer el scrip si esta bien intente subir archivos jpg y si me permite los sube todo bien... el problema es que no puedo subir arhivos swf, no se por que...

este es mi script...

Código PHP:

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$file = $_POST['cliente'].'_'.date("Y-m-d");    
    
  $insertSQL = sprintf("INSERT INTO banners (orden, `datetime`, cliente, seccion, archivo) VALUES (%s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['orden'], "int"),
                       GetSQLValueString($_POST['datetime'], "date"),
                       GetSQLValueString($_POST['cliente'], "text"),
                       GetSQLValueString($_POST['seccion'], "int"),
                       GetSQLValueString($file, "text"));
                       
                       
    if(is_uploaded_file($_FILES['archivo']['tmp_name'])) { 
        $ruta_destino = "images/"; 
        if(move_uploaded_file($_FILES['archivo']['tmp_name'], $ruta_destino . $_FILES['archivo']['name'])) {  
       }  
      }                         

  mysql_select_db($database_noticias, $noticias);
  $Result1 = mysql_query($insertSQL, $noticias) or die(mysql_error());
}

<form action="<?php echo $editFormAction?>" method="post" name="form1" id="form1"  enctype="multipart/form-data">
  <table align="center">
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">Cliente:</td>
      <td><input type="text" name="cliente" value="" size="32" /></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">Seccion:</td>
      <td><select name="seccion">
        <option value="1" <?php if (!(strcmp(1""))) {echo "SELECTED";} ?>>Principal</option>
        <option value="2" <?php if (!(strcmp(2""))) {echo "SELECTED";} ?>>Galerias</option>
        <option value="3" <?php if (!(strcmp(3""))) {echo "SELECTED";} ?>>Chismes</option>
      </select></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">Archivo:</td>
      <td><input type="file" name="archivo" size="32" /></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">&nbsp;</td>
      <td><input type="submit" value="Insertar registro" /></td>
    </tr>
  </table>
  <input type="hidden" name="orden" value="<?php echo $row_orden['orden']+1?>" />
  <input type="hidden" name="datetime" value="<?php echo date("Y-m-d H:i:s"); ?>" />
  <input type="hidden" name="MM_insert" value="form1" />
</form>
__________________
http://www.elcapitolio.com.mx - Ocotlán, Jalisco, México