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