17.10.2010 to 01:09  #8907
Mitch
Mitglied

Avatar

Registered: 10.11.2006
Contributions: 1379

Title: RE: Traffic Script Frage
Zitat:
weißt du vill wie ich n download link verstecken kann.. 

Klick mich!

Kleiner Tipp: Nächstes mal googlen, geht schneller ;-)
_____________________
Matpo.de Co-Admin | Just for fun Coder
Offline  Quote  

17.10.2010 to 01:18  #8908
RP-Design
Mitglied

Avatar

Registered: 25.01.2008
Contributions: 59

Title: RE: Traffic Script Frage
Hallo


www.tutorials.de/content/515-php-download-pro... das wäre was für dich !



EDIT: UPS mitch war schneller
Offline  Webseite Quote  

17.10.2010 to 11:07  #8909
Lucky
Mitglied

Registered: 18.10.2007
Contributions: 63

Title: RE: Traffic Script Frage
danke ihr zwei Lachen aber nich ganz das was ich gesucht habeLachen eher sowas das auf ne andere url weiter leitet.. direkt url ftp.mirror.de/files/datei.zip und die soll mit mirror2.wow-patch.tk/download.php?id=1 aufgerufen werden. so das man halt nicht die direkte url sieht um remote ftp downloads zu verhindern.
_____________________
MfG
Lucky
Offline  Webseite Quote  

17.10.2010 to 11:14  #8910
Possinke
Admin

Avatar

Registered: 03.03.2006
Contributions: 2516

Title: RE: Traffic Script Frage
Oder so:
Neue Datei Bsp. download.php
PHP Code:
<?php
// Path zum Downloadverzeichnis
$path=dirname(__FILE__).'/downloads';

// Download archiv
$downloads=array();
$downloads[1]=array($path.'/test0.zip''application/zip');
$downloads[2]=array($path.'/test1.zip''application/zip');
$downloads[3]=array($path.'/test1.png''image/png');

# Content-Type: http://en.wikipedia.org/wiki/Internet_media_type

if(isset($_GET['id'])){
    
$fileid = (int) $_GET['id'];
    list(
$filepath$content_type) = $downloads[$fileid];
    
// Pruefen ob datei noch gibt
  
if(file_exists ($filepath)){
     
// Download starten
     
header('Content-Type: '.$content_type);
     
header('Content-Disposition: attachment; filename="'.basename($filepath).'"');
     
readfile($filepath);
  }else{
      echo 
"Download nicht mehr vorhanden.";
  }
}else{
    echo 
"Kein Download ausgewält.";
}
exit;
?>
 

und so ruft man den Download auf
meine-domain.de/download.php?id=1
währe
meine-domain.de/downloads/test0.zip

dann noch eine .htaccess in dem /downloads Ordner:
Code:

<FilesMatch ".?$">
deny from all
</FilesMatch>
 

Somit kann die Datei nicht mehr direkt aufgerufen werden.
_____________________
Wie stelle ich richtig eine Supportanfrage?
MatPo.de auf Facebook | MIHS Wunschliste | MIHS Bugreport / Paketeupdates
Offline  Webseite Quote  

17.10.2010 to 14:16  #8919
Lucky
Mitglied

Registered: 18.10.2007
Contributions: 63

Title: RE: Traffic Script Frage
ich glaub ihr versteht mich nicht ganz, z.b. datei liegt aufm server von rapidshare.com ... also rapidshare.com/vhvv/file/datei.zip und diesen link will ich verstecken und mit meiner url aufrufen. mirror2.wow-patch.tk/download.php?id=1

p.s. das neue design ist klasse.. gut gemacht tommy
_____________________
MfG
Lucky
Offline  Webseite Quote  

17.10.2010 to 14:22  #8923
Possinke
Admin

Avatar

Registered: 03.03.2006
Contributions: 2516

Title: RE: Traffic Script Frage
aber Besucher ist halt mit Wartezeit dann geht es nicht da als Download nur die Webseite bekommst aber du brauchst den richtigen path zu datei.
PHP Code:
$downloads[1]=array('http://www.rapidshare.com/vhvv/file/datei.zip''application/zip');  

_____________________
Wie stelle ich richtig eine Supportanfrage?
MatPo.de auf Facebook | MIHS Wunschliste | MIHS Bugreport / Paketeupdates
Offline  Webseite Quote  

17.10.2010 to 14:25  #8925
Mitch
Mitglied

Avatar

Registered: 10.11.2006
Contributions: 1379

Title: RE: Traffic Script Frage
@Lucky Ich schick dir ne PN
_____________________
Matpo.de Co-Admin | Just for fun Coder
Offline  Quote  

17.10.2010 to 14:25  #8926
Lucky
Mitglied

Registered: 18.10.2007
Contributions: 63

Title: RE: Traffic Script Frage
war ja nur ein beispiel, die datei liegt nicht wirklich auf dem rapidshare server, danke dir
_____________________
MfG
Lucky
Offline  Webseite Quote  

Reply
Username:
Title:
  Fett Unterstrichen Kursiv Strike Marquee Code Links Center Rechts Liste Code Zitat Code PHP Code Code Bild Link eMail Farbe
Nachricht:

HTML is not allowed
Smilies are allowed
BBCode is allowed
Confirmation Code: Confirmation Code ==>
 

MatPo Facebookseite MatPo Twitterseite MatPo Googleplus Seite Add News Feeds zu Google