0

I want to know the solution in step by step answers for SFTP file uploading. if I run the program I got the error like this...

Fatal error: Uncaught Error: Call to undefined function ssh2_connect() in C:\xampp\htdocs\test.php:9 Stack trace: #0 {main} thrown in C:\xampp\htdocs\test.php on line 9

I am using xampp with PHP 7.2.6 version.

Sridhar kumar
  • 17
  • 1
  • 1
  • 10
  • Please take a look at the following answer.[Installing ssh2 on xampp](https://stackoverflow.com/questions/34920250/installing-ssh2-on-xampp) – root Aug 09 '18 at 10:49
  • but I expect the perfect result. I tried a lot of ways but still i don't get solution – Sridhar kumar Aug 09 '18 at 10:55

1 Answers1

0
  1. Head to the SSH2 PECL extension download page and download the appropriate version of this extension for you.
  2. Extract the downloaded file.
  3. Copy the .dll file in the extracted folder to the extension folder of your PHP installation
  4. Enable extension in your php.ini file.

Unfortunately, I'm that the current windows build of this extension has not supported PHP 7.2 yet.

Hieu Le
  • 8,288
  • 1
  • 34
  • 55