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.

Probleme mit ftp_get() PHP

Empfohlene Antworten

Veröffentlicht

Hallo :-)

ich habe folgendes Problem mit ftp_get()

Ich habe ein Webserver. Von diesen aus will ich auf ne debiankist zugreifen und ein file per ftp holen.

mein phpcode ist so:


$download = ftp_get($conn_id, "./tmp/hallo.jpg", "/tmp/hallo.jpg", FTP_BINARY);
[/PHP]

ich bekomme dann aber folgende meldung:

Warning: ftp_get() [function.ftp-get]: Error opening ./tmp/hallo.jpg

Folgendes habe ich schon geprüft

$conn_id ist gefüllt, also hab ich ne ftp connection

auf dem Webserver existiert ./tmp

und auf der debi kist gibt es das bild auch. es hat chmod 777.

würde mich über schnelle hilfe freuen ;)

mfg

ftp_get()

kleiner tip :P

du bist dir sicher, das du ins verzeichniss /tmp/ wechseln darfst ?

du hast lokal die rechte in diesem Verzeichniss zu schreiben ?

nochmal eine kleine info was ftp_get(); genau macht:

ftp_get(resource ftp_stram, string local file, string remote file, int mode [,resumepos]);

ich hoffe das hilft dir :)

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.