downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ssh2_sftp_rename> <ssh2_sftp_readlink
[edit] Last updated: Fri, 23 Mar 2012

view this page in

ssh2_sftp_realpath

(PECL ssh2 >= 0.9.0)

ssh2_sftp_realpathBelirtilen dosya yolu dizgesinden gerçek yolu elde eder

Açıklama

string ssh2_sftp_realpath ( resource $sftp , string $yol )

Belirtilen yoldizgesinden uzak sunucunun kök dizinine göre asıl yolu elde eder.

Değiştirgeler

sftp

ssh2_sftp() tarafından açılmış bir SSH2 SFTP özkaynağı.

yol

Dönen Değerler

Asıl yolu bir dizge olarak döndürür.

Örnekler

Ö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' */
?>

Ayrıca Bakınız



add a note add a note User Contributed Notes ssh2_sftp_realpath
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites