array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.ssh2-sftp-realpath.php', 1 => 'ssh2_sftp_realpath', ), 'up' => array ( 0 => 'ref.ssh2.php', 1 => 'SSH2 İşlevleri', ), 'prev' => array ( 0 => 'function.ssh2-sftp-readlink.php', 1 => 'ssh2_sftp_readlink', ), 'next' => array ( 0 => 'function.ssh2-sftp-rename.php', 1 => 'ssh2_sftp_rename', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/ssh2/functions/ssh2-sftp-realpath.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ssh2 >= 0.9.0)
ssh2_sftp_realpath — Belirtilen dosya yolu dizgesinden gerçek yolu elde eder
Belirtilen yol
dizgesinden uzak sunucunun kök
dizinine göre asıl yolu elde eder.
Asıl yolu bir dizge olarak döndürür.
Örnek 1 - Bir dosya yolunun çözümlenmesi
<?php
$baglanti = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($baglanti, 'birey', 'parola');
$sftp = ssh2_sftp($baglanti);
$asilyol = ssh2_sftp_realpath($sftp, '/home/birey/../../../..//./usr/../etc/passwd');
/* $asilyol: '/etc/passwd' */
?>