Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Auslesen einer Datei über LAN (PHP)

Empfohlene Antworten

Veröffentlicht

hi,

ich hab 2 Rechner, auf einem ein Webserver und der andere stellt ein paar .txt files bereit.


$dir = "\\\\txtpc1\\files$\\docs1"; // <--- geht nicht
//$dir = "\\\\txtpc2\\docs1"; // <--- geht

$handle = opendir($dir);
while($files = readdir($handle))
{
if($files != "." && $files != "..")
{
if(is_dir($dir . "/" . $files))
{
echo "/" . $files . "<br>";
}
else
{
echo $files . " <br>";
}
}
}
closedir($handle);
[/PHP]

kommt php nicht mit dieser $ Freigabe zurecht ?????

Weis jemand eine Lösung weil die Freigabe eigentlich schon versteckt sein sollte da noch andere user den txtpc benutzen.

/Scratch

versuch ma

$dir = "\\txtpc1\files\$\docs1"; // <--- geht nicht

gibts mitlerweile ne lösung?

würde mich interessieren.

Gruß

kills

PS:

Notfalls könnte man auch den Ordner per ftp freigeben und dann per php connecten.

damit wäre auch das problem mit den berechtigungen gewehrleistet, und der ordner würde nicht in der netzwerkumgebung rummschwirren

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.