mirror of
https://github.com/php/php-src.git
synced 2025-01-02 17:03:40 +08:00
21 lines
398 B
Plaintext
21 lines
398 B
Plaintext
|
--TEST--
|
||
|
Testing ftp_exec returns true
|
||
|
--CREDITS--
|
||
|
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
|
||
|
#testfest PHPSP on 2009-06-20
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
require 'skipif.inc';
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
require 'server.inc';
|
||
|
|
||
|
$ftp = ftp_connect('127.0.0.1', $port);
|
||
|
ftp_login($ftp, 'user', 'pass');
|
||
|
if (!$ftp) die("Couldn't connect to the server");
|
||
|
|
||
|
var_dump(ftp_exec($ftp, 'ls -al'));
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
bool(true)
|