Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
if (!($connection = ssh2_connect("serveraddress", port))) { echo "[FAILED]\n"; } else echo "Connect";
这没有连接到服务器。
您无法通过 ssh 协议连接到数据库。
为什么不使用 PDO ?http://php.net/manual/fr/book.pdo.php