elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Entrar al Canal Oficial Telegram de elhacker.net


  Mostrar Mensajes
Páginas: 1 [2] 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
11  Programación / PHP / Re: Ocultar enlace con php y descargar en: 5 Febrero 2014, 22:22 pm
Como ya he dicho el link del botón solo debe funcionar 1 vez, y con estos métodos no me sirve.

El primer link para ir al botón que esta la dirección oculta ese me da igual la protección, con el descargar.php?id=1 me sirve.

Lo que mas me interesa es que el botón de descarga el link solo sea valida 1 vez, y para crear otro link valido tengan que pasar por el primer link.

12  Programación / PHP / Re: Ocultar enlace con php y descargar en: 5 Febrero 2014, 12:40 pm
Gracias @bacanzito por la info, le voy a echar un vistazo :)

@sexto si seria eso, pero el problema es que necesito otro link que vaya a ese botón de descarga y no quería usar un php para redirigir a los botones de descarga y otro para bajarlo.

Y el boton de descarga solo valdria si vinieras del primer link y solo funcionase una vez, al cabo de un rato fuera el mismo archivo pero con otro link, pero el primero seria igual.

El unico link que cambiaria seria el del boton.
13  Programación / PHP / Ocultar enlace con php y descargar en: 5 Febrero 2014, 03:54 am
Quiero ocultar la ruta de los enlaces para que no se vean y luego poder descargarlos usando esa ruta.

Para ocultar los enlace hago esto:

descarga.php
Código:
<?php
$id=$_GET["id"];
$enlace = "http://www.miweb.com/" . $id;
header("Content-Disposition: attachment; filename=".$id."\n\n");
header("Content-Type: application/octet-stream");
header("Content-Length: ".filesize($enlace));
readfile($enlace);
?>

El problema esta en descargarlo, no quiero que se descargue automáticamente, quiero que salga algo tipo de botón en la web (que tenga que hacer click)  para descargarlo pero siempre ocultando el link.
 
Alguien me podría guiar o decirme como podría hacerlo? :)
14  Programación / PHP / Re: Añadir limte a las descargas en: 5 Febrero 2014, 03:45 am
Entonces haré lo que dice @EFEX muchas gracias :)
15  Programación / Desarrollo Web / Re: Ayuda subida de datos en: 4 Febrero 2014, 20:16 pm
El Hosting Nixiweb solo permite subidas de 8mb por web, los demás gratuitos seguro que son iguales. Para subir archivos por web es muy fácil, yo en su día lo busque en Google y no es muy difícil.

Para mostrarlo seguramente con PHP podrás sacar la información del .txt y mostrarla en Google estará ya que son tareas sencillas.
16  Programación / PHP / Re: [Proyecto] OpenChatSupport ! en: 3 Febrero 2014, 13:12 pm
Le he probado y me da error:

Fatal error: Call to undefined function get_navegador() in /chat/modulos/modulos.php on line 26
17  Programación / PHP / Re: RSS Feed para las noticias con PHP en: 3 Febrero 2014, 12:47 pm
Me acabo de dar cuenta que el time H que seria la hora en formato 24 muestra un valor raro, no es la hora... :S
18  Programación / PHP / RSS Feed para las noticias con PHP en: 3 Febrero 2014, 12:29 pm
He hecho un RSS Feed con PHP para las noticias, funciona todo bien pero tengo 2 dudas.

La carga de la web es lentísima y el RSS  solo hay 20 entradas. Hay alguna manera de aumentar la velocidad de carga y las entradas del RSS?

Código
  1. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  2.  
  3. <?php
  4. $rss = new DOMDocument();
  5. $rss->load('http://www.foro-nexus.com/syndication.php?fid=4');
  6. $feed = array();
  7. foreach ($rss->getElementsByTagName('item') as $node) {
  8. $item = array (
  9. 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
  10. 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
  11. 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
  12. );
  13. array_push($feed, $item);
  14. }
  15.  
  16. echo '<center><img src="http://www.foro-nexus.com/images/Logo-Tutos.png" alt="Foro-Nexus"></center>';
  17. echo '<br>';
  18. echo '<center><h1> Noticias en general</h1></center>';
  19.  
  20. $limit = 5;
  21. for($x=0;$x<$limit;$x++) {
  22. $title = str_replace(' & ', ' &amp; ', $feed[$x]['title']);
  23. $link = $feed[$x]['link'];
  24. $date = date('d/m/Y - H:i:s', strtotime($feed[$x]['date']));
  25. echo '<center><p><strong><a href="'.$link.'" title="'.$title.'">'.$title.'</a></strong><br /></center>';
  26. echo '<center style="margin-top: -15px;"><small ><em>Publicado el: <b>'.$date.'</b></em></small></p></center>';
  27.  
  28. }
  29.  
  30.  
  31. $rss = new DOMDocument();
  32. $rss->load('http://www.foro-nexus.com/syndication.php?fid=208');
  33. $feed = array();
  34. foreach ($rss->getElementsByTagName('item') as $node) {
  35. $item = array (
  36. 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
  37. 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
  38. 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
  39. );
  40. array_push($feed, $item);
  41. }
  42.  
  43. echo '<center><h1> Noticias Nexus</h1></center>';
  44.  
  45. $limit = 5;
  46. for($x=0;$x<$limit;$x++) {
  47. $title = str_replace(' & ', ' &amp; ', $feed[$x]['title']);
  48. $link = $feed[$x]['link'];
  49. $date = date('d/m/Y - H:i:s', strtotime($feed[$x]['date']));
  50. echo '<center><p><strong><a href="'.$link.'" title="'.$title.'">'.$title.'</a></strong><br /></center>';
  51. echo '<center style="margin-top: -15px;"><small><em>Publicado el: <b>'.$date.'</b></em></small></p></center>';
  52.  
  53. }
  54.  
  55. $rss = new DOMDocument();
  56. $rss->load('http://www.foro-nexus.com/syndication.php?fid=89');
  57. $feed = array();
  58. foreach ($rss->getElementsByTagName('item') as $node) {
  59. $item = array (
  60. 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
  61. 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
  62. 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
  63. );
  64. array_push($feed, $item);
  65. }
  66.  
  67. echo '<center><h1> Noticias Android</h1></center>';
  68.  
  69. $limit = 5;
  70. for($x=0;$x<$limit;$x++) {
  71. $title = str_replace(' & ', ' &amp; ', $feed[$x]['title']);
  72. $link = $feed[$x]['link'];
  73. $date = date('d/m/Y - H:i:s', strtotime($feed[$x]['date']));
  74. echo '<center><p><strong><a href="'.$link.'" title="'.$title.'">'.$title.'</a></strong><br /></center>';
  75. echo '<center style="margin-top: -15px;"><small><em>Publicado el: <b>'.$date.'</b></em></small></p></center>';
  76.  
  77. }
  78.  
  79. $rss = new DOMDocument();
  80. $rss->load('http://www.foro-nexus.com/syndication.php?fid=101');
  81. $feed = array();
  82. foreach ($rss->getElementsByTagName('item') as $node) {
  83. $item = array (
  84. 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
  85. 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
  86. 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
  87. );
  88. array_push($feed, $item);
  89. }
  90.  
  91. echo '<center><h1> Noticias Linux</h1></center>';
  92.  
  93. $limit = 5;
  94. for($x=0;$x<$limit;$x++) {
  95. $title = str_replace(' & ', ' &amp; ', $feed[$x]['title']);
  96. $link = $feed[$x]['link'];
  97. $date = date('d/m/Y - H:i:s', strtotime($feed[$x]['date']));
  98. echo '<center><p><strong><a href="'.$link.'" title="'.$title.'">'.$title.'</a></strong><br /></center>';
  99. echo '<center style="margin-top: -15px;"><small><em>Publicado el: <b>'.$date.'</b></em></small></p></center>';
  100.  
  101. }
  102.  
  103. $rss = new DOMDocument();
  104. $rss->load('http://www.foro-nexus.com/syndication.php?fid=173');
  105. $feed = array();
  106. foreach ($rss->getElementsByTagName('item') as $node) {
  107. $item = array (
  108. 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
  109. 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
  110. 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
  111. );
  112. array_push($feed, $item);
  113. }
  114.  
  115. echo '<center><h1> Noticias FireFox</h1></center>';
  116.  
  117. $limit = 5;
  118. for($x=0;$x<$limit;$x++) {
  119. $title = str_replace(' & ', ' &amp; ', $feed[$x]['title']);
  120. $link = $feed[$x]['link'];
  121. $date = date('d/m/Y - H:i:s', strtotime($feed[$x]['date']));
  122. echo '<center><p><strong><a href="'.$link.'" title="'.$title.'">'.$title.'</a></strong><br /></center>';
  123. echo '<center style="margin-top: -15px;"><small><em>Publicado el: <b>'.$date.'</b></em></small></p></center>';
  124.  
  125. }
  126.  
  127. ?>

En mi web esta subido: http://getmoneyfuckbitches.uni.me/pruebas/
19  Programación / PHP / Re: Añadir limte a las descargas en: 3 Febrero 2014, 12:27 pm
Quiero limitar el ancho de banda para todos los archivos, perdón por la confusión :S
20  Programación / PHP / Re: Añadir limte a las descargas en: 3 Febrero 2014, 04:52 am
Quiero limitar el ancho d banda, que se baje por ejemplo a 1Kb
Páginas: 1 [2] 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines