Jump to content

Reiskeks

New Members
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Reiskeks's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Okay, I figured it out myself. Thanks for your great help.. Thanks...for...well you know
  2. I acidentially posted the old code before... This is the current code: echo '<li><a href="//pathtofile/'.$file.' " download="/pathtofile/'.$file.' ">'.$filename.'</a></li>'; when i try this code with a file within the root directory of my website it works...
  3. <?php error_reporting(E_ALL); $dir = '//DERFPFNAP001/all.rb/ISO-Dokumentation/4-Formblaetter/'; foreach(glob('//DERFPFNAP001/all.rb/ISO-Dokumentation/4-Formblaetter/*') as $key => $file) { $filename=basename($file); echo '<li><a href="'.$file.'">'.$filename.'</a></li>'; } ?> the code reads the files in the directory and shows them but the download isnt possible.. he gives me the error 404 back. I really dont know what further information i could give?!
  4. Hello everyone Now, that my links to files on a NETAPP Server work, the download wont. It gives me the Error 404 "File or directory was not found" back. httpd.enable is on on the netapp and the websites uses a user for connection that has admin rights. Is there anything i can try to make the downloads work? Thanks for your help beforehands
  5. It works now, thanks. Because the company i work for is part of a bigger one, the headquarter has all the IUSR'S. I added a administration User in the IIS and now it works. The only thing left is to make the files downloadable ^^ Thanks fpr your help
  6. It doesnt show the files. There is no content. I mapped the network location in the server as a admin and have full right to the mapped locations. <?php chdrive ("Z:"); chdir("./Vorlagen"); echo getcwd(); foreach(glob('*') as $key => $file) { echo '<li><a href="Z:/Vorlagen/'.$file.'" download="Z:/Vorlagen/'.$file.'">'.$file.'</a></li>'; } ?> I want to provide the files for the emloyees to download them. Is there something in my code thats wrong? Further Info: I mapped the Folder "Vorlagen" directly and the mapped Network Location hat the letter "Z" on my server. The files are lying on a NetAPP Storage (NDMP) On the Storage the structure to the files is: "DERFPFNAP001/all.rb/Vorlagen/$files"
  7. It is set up. When the site loads it doesnt show a error message or somethin glike that. it just loads endlessly and doesnt show any files >_<
  8. Hello people, i really need help.. Im programming an intranet for my employer and now i face a problem. The server runs on Windows 2008 R2, the website is online and PHP works and also my sql database. Now my employer wants me to put links online which lead to a network location. Everybody has access to this server but i cant figure out how to write the php code to point to that direction. The Website runs on the server DERFPFVM072 and the files to download are on the server DERFNAP001/all.rb. I tried chdir but it doesnt work, i tried normal html but it didnt work. Is there a way to make the files downloadable without moving them to the server? Note: Moving the files to the server would have been my suggestion but this would lead to a lot of work to change the licenses (the company i work for has A LOT OF LICENSE FOR EVERY LITTLTE THING) to let the employees have access to the shared folder on the server. Apparently, this is what my code looks like: <?php error_reporting(E_ALL); $dir = opendir("//DERFPFNAP001/all.rb/Useranleitungen"); while (($file = readdir($dir)) !== false) { echo '<li><a href="//DERFPFNAP001/all.rb/Useranleitungen/'.$file.' " type="video/mp4">'.$file.'</a></li>'; } closedir ($dir); ?> </ul> Im pretty new to working with php and have never done something like that before. When the files are on the server the download work with: <?php chdir('./howtos'); foreach(glob('*') as $key => $file) { echo '<li><a href="/intranet_data/abteilungen/it/howtos/'.$file.'">'.$file.'</a></li>'; } ?> Thanks for your help beforehands
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.