Sep
17
2010
ssh2_sftp_realpath()

ssh2_sftp_realpath

(PECL)

ssh2_sftp_realpath --  Resolve the realpath of a provided path string

Описание

string ssh2_sftp_realpath ( resource sftp, string filename )

Translates filename into the effective real path on the remote filesystem.

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

$realpath ssh2_sftp_realpath($sftp'/home/username/../../../..//./usr/../etc/passwd');
/* $realpath is now: '/etc/passwd' */
?>

See Also: realpath(), and ssh2_sftp_symlink() ssh2_sftp_readlink()

 
 
 
Комментарии
Добавить новый Поиск
Оставить комментарий
Имя:
Email:
 
Веб-сайт:
Тема:
UBB-Код:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Пожалуйста, введите проверочный код, который Вы видите на картинке.
Powered by !JoomlaComment 3.26

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 

Кто онлайн

Сейчас 22 гостей онлайн