Ver Mensaje Individual
  #19 (permalink)  
Antiguo 11/03/2009, 15:12
majony
(Desactivado)
 
Fecha de Ingreso: diciembre-2008
Mensajes: 421
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: Sintaxis descargar POO

Revise adecuadamente cada uno de los puntos en lo cuales me mandaste para leer no y cometo ningun error
Código php:
Ver original
  1. <?php
  2.     $pagina = $_GET['pag'];
  3.     include('modulos/descargas/descargas.mod.php');
  4.     $MOD['descargas'] = new Descargas();
  5.     switch($pagina) {
  6.         case 'zona_descarga':
  7.                 $ruta = ($_GET['ruta']);
  8.                 $archivo_arr = explode ("C:/xampp/htdocs/proyecto_cisco/modulos/descargas/archivos/",$ruta);
  9.                 $archivo = $archivo_arr[count($archivo_arr) - 1];
  10.                 $ruta_completa = ("C:/xampp/htdocs/proyecto_cisco/modulos/descargas/".$ruta);
  11.                 if( !file_exists( $ruta_completa)) {
  12.                  die( "No existe $ruta_completa" );
  13.                 }
  14.                 header("Content-Disposition: attachment; filename=".$archivo."");
  15.                 header("Content-type: application/octet-stream");
  16.                 header("Content-Length: ".filesize($ruta_completa));
  17.                 @readfile( $ruta_completa );    
  18.         break;
  19.         case 'insertar':
  20.             include('modulos/descargas/vistas/insertar.html.php'
Ahora me fije bien estaparte de mi index madre
Código php:
Ver original
  1. <?php
  2. include('config.php');
  3.     session_name($cfg_session);
  4.     session_start();
  5.     if (empty($_SESSION['usuario_id'])) {
  6.         $_SESSION['usuario_id'] = 0;
  7.         $_SESSION['usuario_nick'] = 'invitado';
  8.         $_SESSION['usuario_nivel'] = 0;
  9.     }
  10.     include('includes/lib_mysql.php');
  11.     $MOD['mysql'] = new MySQL($cfg_bdname, $cfg_host, $cfg_user, $cfg_passwd);
  12. ?>
  13. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  14. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  15. <head>
  16. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  17. <meta name="description" content="Your description goes here" />
  18. <meta name="keywords" content="your,keywords,goes,here"/>
  19. <link rel="stylesheet" type="text/css" href="css/1024px.css" title="1024px style" media="screen,projection" />
  20. <link rel="stylesheet" type="text/css" href="css/Style.css" title="1024px style" media="screen,projection" />
Y tampoco veo nada de espacions ni ninguna salida