FTP et SSH - Fonction php ftp_nlist() bloque mon hebergeur et retourne erreur 403
... / Fonction php ftp_nlist() ...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

Fonction php ftp_nlist() bloque mon hebergeur et retourne erreur 403

Von
AbdelazizH
Erstellungsdatum 2019-06-03 14:00:20 (edited on 2024-09-04 13:35:35) in FTP et SSH

Je me demandais pourquoi lorsque j'utilise la fonction ftp_nlist($ftp->conn, ".")

Mon hébergement me retourne une erreur 403 et je ne peux plus accédez à mon site.
Des que j'enlève cette ligne et que je réactive mon hébergement, tout fonctionne correctement.

En quoi cette fonction est elle une faille de sécurité ?

Cordialement.


1 Antwort ( Latest reply on 2019-06-03 18:44:10 Von
AbdelazizH
)

Problème résolu.

Ajouter cette ligne

ftp_pasv($this->conn, true);

avant la fonction ftp_nlist()