rondog Posted April 15, 2010 Share Posted April 15, 2010 I am running a script locally using WAMP and mkdir is saying that the file already exists when it doesn't $root = $_SERVER['DOCUMENT_ROOT']; mkdir($root . $this->dataFolder,0755); $root . $this->dataFolder is C:\wamp\www\scl2\project_data\ I am in the project_data folder and it's empty..anyone know why? Link to comment https://forums.phpfreaks.com/topic/198689-mkdir-saying-file-exists/ Share on other sites More sharing options...
teamatomic Posted April 15, 2010 Share Posted April 15, 2010 I am in the project_data folder and it's empty..anyone know why? That answers your question as to why php says it already exists. HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/198689-mkdir-saying-file-exists/#findComment-1042691 Share on other sites More sharing options...
rondog Posted April 15, 2010 Author Share Posted April 15, 2010 oh man i am retarded...I forgot to add the new file folder name to the end... mkdir($root . $this->dataFolder ."/" . $dir,0755); Link to comment https://forums.phpfreaks.com/topic/198689-mkdir-saying-file-exists/#findComment-1042700 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.