Quantcast
Channel: WampServer - WampServer Francais
Viewing all articles
Browse latest Browse all 3476

[Résolu] CLI et FTP (2 réponses)

$
0
0
Bonjour,

ma configuration ;
Windows 7 64bit, Wamp 3.0.1 64bits, PHP 7.0.2, Apache 2.4.17, icone verte activée, et dans mon host :

127.0.0.1 localhost
127.0.0.1 monsite.localhost

j'ai accès à Localhost.

Je souhaite utiliser la fonction FTP_Connect en Cli. Mais, j'ai ce message d'erreur :

Fatal error: Uncaught Error: Call to undefined function ftp_connect()


J'ai regardé dans PHPInfo, la fonction est bien activé. J'essaie en CGI et ça marche parfaitement, pas de message d'erreur... Donc ma question est : comment corriger ce problème d'unidefined function present qu'en cli ?

PS : j'utilise Avast en antivirus.

cordialement.

J'ai regardé et comparé ce script en cli et en CGI : var_dump(function_exists('ftp_connect'));

la éponse :
CGI : boolean true
CLI : bool(false)

comment activer cette fonction en CLI ?

Viewing all articles
Browse latest Browse all 3476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>