ged = new Ged(); } public function index() { // $this->genererVueAjax(array('reponse' => $reponse)); $this->genererVueAjax(); } public function verifierexistancefichier() { $cheminFichier = $this->requete->getParametreFormulaire("cheminFichier"); // modifié à cause de l'url distant chez le prestataire => remote_file_exists($url) // if(file_exists($cheminFichier)) if(remote_file_exists($cheminFichier)) { $reponse = "1"; } else { $reponse = "0"; } echo "$reponse"; } }