note 104153 added to function.mkdir

From: Date: Thu, 26 May 2011 20:41:56 +0000
Subject: note 104153 added to function.mkdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-180065@lists.php.net to get a copy of this message
If you are having trouble with the pathname, use: echo dirname( __FILE__ ); That will show you the pathname of the current script and you will be able to use that to see where you have to start your pathname. I tried forever to do mkdir('dirname') and was getting permission denied. I can see now its because it was trying to create that folder up at home when i wanted it down in public_html. I hope this saves someone some time. ---- Server IP: 69.147.83.197 Probable Submitter: 12.222.191.27 ---- Manual Page -- http://www.php.net/manual/en/function.mkdir.php Edit -- https://master.php.net/note/edit/104153 Del: integrated -- https://master.php.net/note/delete/104153/integrated Del: useless -- https://master.php.net/note/delete/104153/useless Del: bad code -- https://master.php.net/note/delete/104153/bad+code Del: spam -- https://master.php.net/note/delete/104153/spam Del: non-english -- https://master.php.net/note/delete/104153/non-english Del: in docs -- https://master.php.net/note/delete/104153/in+docs Del: other reasons-- https://master.php.net/note/delete/104153 Reject -- https://master.php.net/note/reject/104153 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180065) next »