Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/05/2010, 16:50
F_100_Joe2
 
Fecha de Ingreso: mayo-2010
Mensajes: 39
Antigüedad: 13 años, 11 meses
Puntos: 0
no se que tenga que ver esto con php... porque lo que vos queres es mas html que php

Código PHP:
Ver original
  1. <?php echo '<a href="'.$descarga['descarga'].'">'.$descarga['descarga'].'</a>'; ?>

algo asi queres vos??

avisame si te sirvio :)

Código PHP:
Ver original
  1. [B][I][U]<?
  2. /*
  3. Copyright (c) 1999 Marcel Lemmen
  4. All rights reserved.
  5. */
  6. $files=array( 'track01.mp3', 'escreen.exe');
  7. $filenames=array( 'Thank ABBA for the music.mp3', 'Escreen.exe');
  8. $additional_info=array( 'Various artists - Thanx ABBA for the music : 4978602 by
  9. tes', 'Shareware program to make a screenshot: 529920 bytes');
  10. $url= "/home/lemmen/public_html/data/";
  11. /* When the files are on another server, use the
  12. whole address (http://www.server.com/dir/) in stead of /home/lemmen... */
  13.  
  14. $referer=ereg_replace( "?.", "",$HTTP_REFERER);
  15. $thisfile= "http://$HTTP_HOST$PHP_SELF";
  16.  
  17. if ($referer!=$thisfile){
  18. echo "<center><big>Homepage: <a href="http://home.support.nl/~lemmen">
  19. http://home.support.nl/~lemmen</big><br><hr><br><br></center>";
  20. for ($i=0;$i<count($files);$i++)
  21. echo "<P><A HREF="$PHP_SELF?$i">",$filenames[$i], "</A> $additional_i
  22. nfo[$i]n";
  23. }
  24. else {
  25. $i=$QUERY_STRING;
  26. $total=$url . $files[$i];
  27. Header ( "Content-Type: application/octet-stream");
  28. Header ( "Content-Length: ".filesize($total));
  29. Header( "Content-Disposition: attachment; filename=$filenames[$i]");
  30. readfile($total);
  31. }
  32. ?>[/U][/I][/B]

Cita:
ese codigo es para ocultar los links...de tu pagina... porque si no queres que te los extraigan ;)

Última edición por GatorV; 12/05/2010 a las 20:16