note 72235 added to function.mkdir

From: Date: Mon, 08 Jan 2007 23:02:02 +0000
Subject: note 72235 added to function.mkdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-121469@lists.php.net to get a copy of this message
Re: john 4t idserver d0t org, and djneoform at gmail dot com's posts from 27 Oct 2006: On Windows systems, several keywords are reserved and cannot be used as filenames, in addition to just CON and PRN. Attempting to create a folder with one of these names using mkdir will throw the unhelpful error "Invalid argument". According to http://msdn.microsoft.com/library/default.asp ?url=/library/en-us/fileio/fs/naming_a_file.asp : "Do not use the following reserved device names for the name of a file: CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names followed by an extension, for example, NUL.tx7. Windows NT: CLOCK$ is also a reserved device name." These keywords are also case-insensitive. I don't know what problems are posed by using these keywords with extensions, but I successfully created a folder named "con_f". ---- Server IP: 216.194.113.175 Probable Submitter: 70.113.43.245 ---- Manual Page -- http://www.php.net/manual/en/function.mkdir.php Edit -- https://master.php.net/note/edit/72235 Del: integrated -- https://master.php.net/note/delete/72235/integrated Del: useless -- https://master.php.net/note/delete/72235/useless Del: bad code -- https://master.php.net/note/delete/72235/bad+code Del: spam -- https://master.php.net/note/delete/72235/spam Del: non-english -- https://master.php.net/note/delete/72235/non-english Del: in docs -- https://master.php.net/note/delete/72235/in+docs Del: other reasons-- https://master.php.net/note/delete/72235 Reject -- https://master.php.net/note/reject/72235 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121469) next »