note 66456 added to function.ftp-chmod

From: Date: Tue, 23 May 2006 10:21:20 +0000
Subject: note 66456 added to function.ftp-chmod
Groups: php.notes 
Request: Send a blank email to php-notes+get-111851@lists.php.net to get a copy of this message
As mentioned in the note below, the function posted by "hardy add mapscene dot com" works incorrectly if used with an octal mode, the way the php5 function is used. This function works exactly like the the php5 one: <?php if (!function_exists('ftp_chmod')) { function ftp_chmod($ftp_stream, $mode, $filename) { return ftp_site($ftp_stream, sprintf('CHMOD %o %s', $mode, $filename)); } } ?> ---- Server IP: 203.199.107.94 Probable Submitter: 125.22.78.99 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.ftp-chmod.php Edit -- http://master.php.net/note/edit/66456 Del: integrated -- http://master.php.net/note/delete/66456/integrated Del: useless -- http://master.php.net/note/delete/66456/useless Del: bad code -- http://master.php.net/note/delete/66456/bad+code Del: spam -- http://master.php.net/note/delete/66456/spam Del: non-english -- http://master.php.net/note/delete/66456/non-english Del: in docs -- http://master.php.net/note/delete/66456/in+docs Del: other reasons-- http://master.php.net/note/delete/66456 Reject -- http://master.php.net/note/reject/66456 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111851) next »