ssh2_sftp_stat

(PECL ssh2 >= 0.9.0)

ssh2_sftp_statStat a file on a remote filesystem

Beschreibung

ssh2_sftp_stat(resource $sftp, string $path): array

Stats a file on the remote filesystem following any symbolic links.

This function is similar to using the stat() function with the ssh2.sftp:// wrapper and returns the same values.

Parameter-Liste

sftp

An SSH2 SFTP resource opened by ssh2_sftp().

path

Rückgabewerte

See the documentation for stat() for details on the values which may be returned.

Beispiele

Beispiel #1 Stating a file via SFTP

<?php
$connection 
ssh2_connect('shell.example.com'22);
ssh2_auth_password($connection'username''password');

$sftp ssh2_sftp($connection);
$statinfo ssh2_sftp_stat($sftp'/path/to/file');

$filesize $statinfo['size'];
$group $statinfo['gid'];
$owner $statinfo['uid'];
$atime $statinfo['atime'];
$mtime $statinfo['mtime'];
$mode $statinfo['mode'];
?>

Siehe auch

  • ssh2_sftp_lstat() - Stat a symbolic link
  • lstat() - Sammelt Informationen über eine Datei oder einen symbolischen Link
  • stat() - Sammelt Informationen über eine Datei

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

FULLLZ.ASIA ✅ sells Cloned card including Pin Verify Code Cashout From ATM

FULLLZ.ASIA ✅ Sells ATM Skimmer POS/x2 EMV/DUMPS PIN/OMIKEY/Track+1/2_Zip_state+TX+NJ+CA+NY FULLLZ.ASIA ✅ Verify Seller Dumps Pin track1&2,Pay ...

Geschrieben von dumpstop10 am 13.06.2026 02:36:46
Forum: SEO - Suchmaschinen Tricks und Tipps
FULLLZ.ASIA ✅ includes full info ssn,dob,ssn,dl/social security number/date

FULLLZ.ASIA ✅ Sells ATM Skimmer POS/x2 EMV/DUMPS PIN/OMIKEY/Track+1/2_Zip_state+TX+NJ+CA+NY FULLLZ.ASIA ✅ Verify Seller Dumps Pin track1&2,Pay ...

Geschrieben von dumpstop10 am 13.06.2026 02:34:57
Forum: Provider / Domains
FULLLZ.ASIA ✅ purchase Cashapp/Paypal DUMPS with PINs, EBTs with PINs,

FULLLZ.ASIA ✅ Sells ATM Skimmer POS/x2 EMV/DUMPS PIN/OMIKEY/Track+1/2_Zip_state+TX+NJ+CA+NY FULLLZ.ASIA ✅ Verify Seller Dumps Pin track1&2,Pay ...

Geschrieben von dumpstop10 am 13.06.2026 02:34:24
Forum: Entwicklungsumgebungen
FULLLZ.ASIA ✅ DUMPS WITH PIN SHOP ONLINE+TRACK 1&2 MIX 101

FULLLZ.ASIA ✅ Sells UK SQL Data NIN/National Insurance Number/DOB/Sortcode/BankNum FULLLZ.ASIA ✅ worldwide Dumps With Pin Track 1&2 track1 %B4 ...

Geschrieben von dumpstop10 am 12.06.2026 15:06:22
Forum: Jobgesuche