note 71111 added to function.mkdir

From: Date: Mon, 13 Nov 2006 03:42:30 +0000
Subject: note 71111 added to function.mkdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-119645@lists.php.net to get a copy of this message
The 'mkdir' function doesn't function correctly on Windows when the pathname contain space(s) on the final. PHP returns a warning, and the directory isn't created: Warning: mkdir() [function.mkdir]: Invalid argument in X on line Y Temporary fix: use trim() on the pathname Besides, if the pathname contain space(s) on the start, the directory is created when couldn't even so (in accordance with the behavior of Windows Explorer). ~ v1d4l0k4 ---- Server IP: 200.185.109.13 Probable Submitter: 201.82.28.191 ---- Manual Page -- http://www.php.net/manual/en/function.mkdir.php Edit -- https://master.php.net/note/edit/71111 Del: integrated -- https://master.php.net/note/delete/71111/integrated Del: useless -- https://master.php.net/note/delete/71111/useless Del: bad code -- https://master.php.net/note/delete/71111/bad+code Del: spam -- https://master.php.net/note/delete/71111/spam Del: non-english -- https://master.php.net/note/delete/71111/non-english Del: in docs -- https://master.php.net/note/delete/71111/in+docs Del: other reasons-- https://master.php.net/note/delete/71111 Reject -- https://master.php.net/note/reject/71111 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119645) next »