note 92678 modified in function.mkdir by danbrown

From: Date: Mon, 03 Aug 2009 20:16:01 +0000
Subject: note 92678 modified in function.mkdir by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159065@lists.php.net to get a copy of this message
When I created folder on windows with mkdir, I found some problem from folder nam so I write this function. <?php function filename_safe($name) { $except = array('\\', '/', ':', '*', '?', '"', '<', '>', '|'); return str_replace($except, '', $name); } ?> It can use with another functions about file system as file_put_contents to clean up file name. --was-- When I created folder on windows with mkdir, I found some problem from folder nam so I write this function. function filename_safe($name) { $except = array('\\', '/', ':', '*', '?', '"', '<', '>', '|'); return str_replace($except, '', $name); } It can use with another functions about file system as file_put_contents to clean up file name. http://php.net/manual/en/function.mkdir.php

« previous php.notes (#159065) next »