Doc #73642 [Opn->Fbk]: ftp_mkdir make an error if fodler exist

From: Date: Fri, 02 Dec 2016 11:16:52 +0000
Subject: Doc #73642 [Opn->Fbk]: ftp_mkdir make an error if fodler exist
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14169@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73642&edit=1 ID: 73642 Updated by: requinix@php.net Reported by: pottierbaptiste at gmail dot com Summary: ftp_mkdir make an error if fodler exist -Status: Open +Status: Feedback Type: Documentation Problem -Package: PHP Language Specification +Package: FTP related Operating System: mac OSX PHP Version: 7.0.13 Block user comment: N Private report: N New Comment: Are you saying that PHP emits a warning when the mkdir fails? What is the message? Previous Comments: ------------------------------------------------------------------------ [2016-12-02 10:34:51] pottierbaptiste at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.ftp-mkdir --- In document is written that ftp_mkdir return false is folder already existe it seems to be false, it's an error i have to write it with a "@": if (@ftp_mkdir($conn_id, $myfolder)) { echo "$myfolder has been created > success "; } else { echo "oups, there is a probleme..."; } Test script: --------------- if (@ftp_mkdir($conn_id, $myfolder)) { echo "$myfolder has been created > success "; } else { echo "oups, there is a probleme..."; } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73642&edit=1

« previous php.doc.bugs (#14169) next »