note 47159 added to function.ftp-mdtm
| From: | wseibert at hxcorp dot com | Date: | Thu, 04 Nov 2004 20:55:27 +0000 |
| Subject: | note 47159 added to function.ftp-mdtm | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79641@lists.php.net to get a copy of this message | ||
When trying to get the modified time of a file that has spaces in it, ftp_mdtm will fail on some FTP
servers. If this happens, surround the file name with quotes.
$file_name = "my index.html";
$file_modtime = ftp_mdtm($connection, '"'.$file_name.'"')
----
Manual Page -- http://www.php.net/manual/en/function.ftp-mdtm.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47159
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47159&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47159&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47159&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47159&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47159&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47159&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47159&report=yes
Search -- http://master.php.net/manage/user-notes.php